Worked on resource loader.

This is going to be really cool. About half way done (maybe).