Added simple token function
PAM-based login/logout URIs added
Working authentication API