Moved all resource loading code into a single folder.