Added setTimeout for XMLHttpRequest

This is an updated PR and implementation, based off the requirements specified in https://github.com/driverdan/node-XMLHttpRequest/pull/67