Merge pull request #47 from biversen21/master

works on backbone/database put issues
(fix) Backbone pushes now save to the db properly
Merge pull request #48 from aselbie/master

(fix) Backbone pushes now save to the db properly
adds switch statement for handling building game logic
adds basic resource generation. water production and consumption function. needs view refactor for refining