Add JAAS configuration, session manage and secure password generator