Add action validation in server.

* Use routes for validating user actions when interacting with server.
* Also add tests for action validation.
* Add changes file.
* Closes #2356.
Remove unneeded exceptions.
Enforce dependency on simplejson.
Add token credentials to SQLCipher tests.