Changed BMDie->disabled to BMDie->dizzy for focus dice to distinguish between disabled (for chance dice) and dizzy (for focus dice)
Added SQL update file
Made SQL update file more comprehensive
Fixed code to ensure that chance dice are only disabled for active players
Fixed code to ensure that chance dice are only disabled for players that don't win initiative with their chance roll
* use a simpler and more accurate method of getting the previous round number when putting round-end activity in the action log
Merge remote-tracking branch 'upstream/master' into 605_dizzy_disabled

Manually resolved conflicts in:
	src/engine/BMGame.php
* add some unit tests of round-end action logs
Removed artifacts of merge conflicts
Merge pull request #613 from cgolubi1/492_round_logic

put correct round number in action_log at the end of the game
- Set BMGame->isPrevRoundWinnerArray when surrendering
- Fixed calls to end() that failed, see php.net/end:

Please note that from version 5.0.4 ==> 5.0.5 that this function now takes an array. This will possibly break some code for instance:

<?php

echo ">> ".end(array_keys(array('x' => 'y')))."\n";

?>

which will return "Fatal error: Only variables can be passed by reference" in version <= 5.0.4 but not in 5.0.5.

If you run into this problem with nested function calls, then an easy workaround is to assign the result from array_keys (or whatever function) to an intermediary variable:

<?php

$x = array_keys(array('x' => 'y'));
echo ">> ".end($x)."\n";

?>
Merge remote-tracking branch 'cgolubi1/174_surrender' into 609_surrender_bug
Merge branch '605_dizzy_disabled' of https://github.com/blackshadowshade/buttonmen into 605_dizzy_ui
* modify frontend to assume focus dice have the property "dizzy" rather than "disabled", and to interpret "disabled" as a property of chance dice if it arises
Merge pull request #612 from blackshadowshade/605_dizzy_disabled

Focus dice now become dizzy instead of disabled
Merge branch 'master' of github.com:buttonmen-dev/buttonmen into 605_dizzy_ui
* json_decode as called can't decode an empty associative array correctly, so force callers to always fill in something in the params array
Merge pull request #620 from cgolubi1/619_decline_focus_log

always fill in some values in the action log params array to make json_decode happy
Merge pull request #618 from cgolubi1/605_dizzy_ui

make necessary UI changes for the dizzy/disabled swap
some foglio, sluggy, samurai, freaks, lords, bar mitzvah, lunch money