Add asset stream support. Refactor stream loaders.

TODO: asset stream tests.