Resolve __random button selections only after all buttons have been selected

Fixes #1157.

Requires database update 01157_random_button.sql

http://jenkins.buttonweavers.com:8080/job/buttonmen-blackshadowshade/377/
This one doesn't look actively harmful, but it's an unnecessary extra noop database save after every game action, for any game which initially had random button selection.