Added database stuff which is usable, added login page, logout page, some basic caching stuff, config things and working on the ACL system but not done yet.