[Finished #1] Implimented logout and password change, added tests for new features. Minor bug fixes.