Reorganization of code, and basic features implemented.

I moved all the management code that was in assign.php into GameManager,js, and implemented saving of progress, buying and selling of whole bitcoin, and ability to actually purchase miner upgrades.