Uniform JSON error messages

Add check for players' ready state before starting a game
Move files from inside directories to root
Use a connection module for socket data handling