reimplements create_session using httparty. fixes #38, fixes #20, fixes #19, fixes #18, fixes #17