made websockets singleton and implemented timeout and what game
detection
login, logout, templates usw. implemented