Implement handling for all core/consensus messages.

Does not handle becoming leader or proposing changes yet.