Added a bunch of support for sprites, viewports, asset management, etc to core.js