Separate API from webapp.