Added ability to set the user agent
Added ability to get current authenticated user