JUnit testcases for UserDAO, Logout and Exit with confirmation dialog, fix common BUGs, Ressources optimization

Fix Search BUGs
Fix Logout BUG
Center all the dialogs windows
See previous commit