Merge pull request #429 from janus-ssp/develop

Migrated to Doctrine ORM
Improved error for missing / unwritable logs / cache dir.