Doctrine entity manager in Kimai_Registry.
Added user repository class.
Switched to doctrine entities for preference data.
Removed unused methods from database layer.
Moved more methods to user class.