auth: Add accessor for userdb-template fields It's needed in lua
lib: API change - var_expand*() now returns error string. This allows callers to fail properly if the format string is invalid.
auth: Added missing files from recent commit.