Many fixes all around the program. Continuing development on DDI-import. Modified GUI-handling so that CUSTOM_JS displayType is required on all fields containing custom functionality. Added notes about using API. API calls are not wrapped inside the default security context.