Move the documentation of app object to jsdox

Move the hand-written markdown from docs/api-app.md to
lib/application.js