Added login system

Logins, email confirmations, password resets, etc.