Redirect http -> https, removed cruft
login
login and logout works
TODO moved to separate file
func main moved to top
some old changes