New government in one pulse.

Create a new government in one pulse. The promise is rejected if the
future majority member is out of sync, but a sync message is also send
in the same transcript, and the learns are processed ahead of the
promise.

Rewrite the uniform detection using loops instead of functions.

Closes #159.
Closes #167.