Was improperly calling the Net::HTTP API

* Fixes the way that Net::HTTP API calls were
  being made in the register and credentials providers
Merge pull request #21 from jaypipes/working

Was improperly calling the Net::HTTP API