Move the documentation of app object to jsdox

Move the hand-written markdown from docs/api-app.md to
lib/application.js

/to: @ritch please review
/cc: @crandmck