Added options to enable/disable phases and/or change the phase duration
reworked XpcConnect and event handler so that we correctly pass around the context (BLE now implements the XpcEventHandler interface, then we do a bunch of crazy stuff to pass around the interface pointer)