Move adapter back to app.js
Use api-stub generator