Simple frontend authorization

Simple authentication functionality is present but security is not. HTTPS may be required, but this might be (probably is) insecure even with it. I'm out of my element here so I presume that much of this is easy to exploit.

Ideally, most of this should be replaced with OAuth / a third party authentication system. Due to time constraints, I would at least like something to demonstrate as a proof of concept.