Added the missing callbacks

In support of 0.2.0 but still backwards compatible.
Reordered page.js to keep callbacks together.
Removed app specific behavior in one of the callbacks.