Sdasktc fixing entitymanager

Implemented start statement document. Fixed viewing logs. Removed session factory - now, we are using only entity manager. Added new ER diagram. Implemented mockito tests for TeamService. Yeap, a lot of fixes in one branch, it is bad. 
1. hard-coded localized strings
2. raceId should not be considered as a 1 or 2 only.