API: Move API registering to its own module and use a factory
API: Disable API by default