various fixes and a new event
- responseType defaults to 'text'
- new event beforeredirect
- sendAsBinary is not standard, so its out
- fixed header array values
- fixed events call arguments
- added onReceiveError
- force status to be integer
- properly dispatching error and timeout events
implementing resultCodes from the chromium net_error_list.h