Handle XHR timeouts in API (bug 981647)
Merge pull request #6 from kumar303/timeout

Handle XHR timeouts in API (bug 981647)
Add in some common HTTP methods