Added Loader class and drawing abilities to Resource.js