Refactored the Signer class out of the Client class so that it can be reused in Twisted and/or Tornado.