Login functionalituy

Implemented basic user creation and login functionality. Login uses a
container managed JAAS realm.