First work on the ResourcePackStream. Might converge ResourcePack and Stream, they seem to be solving similar problems.

Also, added SAL checks.