Move the serial api and permission features to extensions/.