Cleanup and Implement direct Javascript-to-C++ function calling

Wrap bts::client in a QObject-based class, which manages the client and
RPC server. QObjects can be exposed to Javascript, so we do this with
ClientWrapper to allow the HTML5 frontend to call these C++ methods
directly.