Removed no longer relevant comments
Hiding detailed error messages from the rest service for the end user
Added support for cookies and sessions
Fixed typos in comments
Exposing detailed error messages to the outside world, it's now up to clients to show generic or detailed error messages
The last randomized values are now stored in the session to make sure the same value isn't sent twice in succession to the end user