fix code review comments, including mysql and rounding; and jasmine tests (they needed config.txt update);
policy config now shows the new style (though it still doesn't yet use json arrays);
also fix policy tab so it shows immediately,
and fix tab-switch error when we've reloaded a page