Convert balance to ugly Cadence.

It will be pretty Cadence when Balancer becomes a prototypical object.

See #375.
Begin a bit by bit converstion of `mergePages`.

Convert `mergePages` to Cadence.

See #375.
Move merge page rewrite into Cadence.

See #375.