Extract parsing functionality out of Loader.js into swf/resourceloader.js

resourceloader is the new main entry point into the parsing worker, but can optionally and seamlessly also run on the main thread.