Add gameplay controller to handle all gameplay actions. Code refactor.

Add ActionProcesser class to incapsulate common code for websocket and
http handlers.