Removed unused imports, refactored base API.
Updated tests.
Started working on the API module loader.