Fixed hash_password method.
Added validate_credentials class method.
Added validate_credentials class method. Added ensure index for sessions, and users.
Added mongodb connection.
Updated settings module.