Sdasktc fixing entitymanager

Fixed: adding race results(temporarily implemented hibernate 4 session factory); maven warnings; running war on server / run on server (in Eclipse).