Code tidying up, authorization, board admin

* Tidy up some code
* Require a "logged in" user for all the important bits
* Initial, ground code to build a board admin page