Store the user in the local database

ReadOnlyUser is nasty and doesn't support 
permissions.
Update the stubbed user in the tests.
Merge remote branch 'origin/fix-sso'