Make the loading of files injectable

Now there is a WebLoader which uses XHR and NodeLoader which uses Node's fs
module.