Move some resource loaders into core.io package.
Move unit testing stuff into core.testing package.