Fix bad refactor and bad test.

- Fix problem where CoreHandlers were not attached to servers not
  created at bot-creation time.
- Fix bad logic in ReplaceConfig. Now performs actions when no errors
  are present instead of only when errors are present.
- Fix hang up when trying to connect to connected server. Server would
  try to acquire write lock but while the server is running a read lock
  is already in place.