Adds timeout functionality

Adds timeout and ontimeout params to be set on the XHR object if they're present on the options object.