Work on authentication and other stuff.
* Add missing files.
* Beautify JS.