Service singleton is now thread-safe.
Enables multithreading with lazy constructor.
Clean and prepare to migrate for another ORM.
Merge branch 'develop' into database_view