Changed lib to deal with requests.

Migration from http2 and urlencode to requests lib to deal with the http
requests from the api.
Minor bug fixes.
Added pages and photos API.