Doctrine config

Created doctrine configuration files and fixed Entity annotations minor bugs.
Doctrine modules are now enabled and they read the included doctrine configuration.
Local configuration has to be created by copying db.local.php.dist to db.local.php and updating username, password and such.