Abstracted async loading into requirejs plugin; tests no longer have to deal with callbacks