DDF-374: Moved application service to admin app.

Also added extra methods so that it is possible to determine parent and child relationships.