Changes in hibernate implementation to fix memory leak issues in server, also varius changes in DBManager and other file referenced from DBM

Changes in hibernate implementation to fix memory leak issues in server,
also varius changes in DBManager and other file referenced from
DBManager
Merge branch 'master' of https://github.com/MusesProject/MusesServer