Boolean return from contextGetAuthenticatedUser

The contextGetAuthenticatedUser() function now returns an additional bool value to explicitly indicate whether the context contains a user value or not.