Fixed assets not always being cached. Finished implementation. Fixes #71