Got logging in and out working.

Added password hashing with PHPass.
Got logging in and logging out working.