Implement .ancestors and .root on the app object. Document a
few of these methods better.