Fix crashed at message when connecting to an ended game.
Show bonus for losers in game view
Merge pull request #21 from kungfuant/crashedatmessage

Fix crashed at message when connecting to an ended game.
Fix appending games to history
Add extra second of time for 0mar
Fix some crash bugs
Make the max loss an environment variable
Fix interference between manual and auto cashout
Merge pull request #22 from kungfuant/autocashout

Fix interference between manual and auto cashout
Some force cashout related fixes
Count proper loss
Restrict new username lengths
Bug typo fix
Add public stats
Few little fixes
Fix improvements, bump max bet to 1 BTC!!

* Add cancel bet option
* bump max bet to 1 BTC
* Allow using k suffix in placing a bet to mean 1000
Add user classes to the database.