Refactored user and userinfo into user and credentials. Set up EHCache
with some classes and queries in Dao.