CSRF protection
Added GetUser to the database file.

Also started to work on the index page when signed in.
Put settings/other stuff in cog.js and cog.html