Bug 877544: Improving find_application

This improves the speed of `find_application` by calling it once with a generated REST endpoint instead of calling `find_domain().find_application()`.