Move API into separate app.