Added misc. game logic improvements.
Added many API endpoints, better db config, updated gems.