GS-1-TRN

Get things running. Mostly focusing on basic authentication, web frontend and apps model. @twinge 
Don't use `class << self`. Just prefix the methods with `self.` as necessary. I know it's functionally the same, but it's more readable/obvious when methods start with `self.`