Added authentication, sessions, and other security features. Added lots of initial stuff as well.