Refactor married keychains

* move handling of following keychains into the leading keychain
* move multisig threshold into the leading keychain
Needs a javadoc, even if it's just a simple one.