remove preloading patch, doesn't seem to speed us up
factor out gfx parts into gfx.js and introduce midp/
factor out midp natives