Added better interaction with BOPlishClient

* You may now pass callbacks to the constructor so that you will get notified
  of a successful join to the P2P network or an error.
* When the WebSocket connection to the bootstrap server cannot be established
  the error callback is called.