Added password hashing to user creation; fixed require.js impl
Authenticate user from login page; cleaned up regsitration