Switching to requests.
Replaced py-curl with requests.

Also some work on the database interface of the client.