Implement handoff functionality for slave mode

* New process makes a fresh connection to the master and loads up rewind
  data from there.
* Handoff transfers active listeners and the server socket.