Make resource loading callback based
Add support library for basic data structures