Merge pull request #8 from perezd/logging

expose the log function as a module export so that it can be overriden
Merge remote-tracking branch 'origin/master'
Sync with xmlhttprequest