First stab at reading an entire resource file into RAM

Still missing byte-swapping and of course terribly inefficient. Also not yet modeled after the official API, it's internal SPI that we'll have to re-map.