named AMD define for compatibility with more AMD module loaders
cleanup for readability
fix typo causing headers to not get set
add tests for callbacks
add tests for request methods
add tests for headers
add tests for url
merged
update builds, file sizes