Add merging functionality to ProtoCaps.

- Add caps merging to bot and server.
- Tidy up synchronization across Bot and Server variables.
- Remove the ability to set protocaps, removing the need to synchronize
  externally since it is an already-synchronized type.
- Fix #1