Fix several bugs.

- MonitorServers now uses memory on the server instead of it's own map
  of name->bool.
- Make state update before dispatching any messages.
- Fix a race condition in the KeepAlive test that caused it to fail when
  run with the -race flag (not because of a data race.)
- Lock up the config usage in the CoreHandler.