Basic loading prototyping
Added detection for file type by extension, as well as automatic allocation for the load and dispatch to loader func.