synergy: handle CBYE command

* this enables the client to reconnect to the server after it
  has been shutdown and later restarted; this fixes an issue
  where Haiku would lose the connection to a Windows server
  when the screen is locked
synergy: correct line endings to LF
synergy: don't leak the BNotification and BBitmap objects
synergy: major cleanup/refactor