Add resource autoloader and math objects