Factored out the proxy classes

Really they were unnecessary and took in code that belonged in different
classes into themselves.
They have been replaced with a simple boolean which determines whether
BTH is running on a client or a server.