Simplified api.data namespace, added a test for data type IDs
Updated imports in plugins, also fixed some bugs.