Create ANONYMOUS user constant to use instead of null when no user
logged in.
Pulled out user cookie encoding so it can be used on the server in UberFire's form-based login process