Do not set onload/onerror handler to null after handling the callback.
Use DomHelper.prototype.insertInto instead of appending to head manually in loadStylesheet method. The reason for doing this is so that existing code doesn't behave slightly different from previous behaviour in the case of a badly formed HTML page.
Move tests assets into spec/fixtures directory.