executor: remove direct reference to loopback

Modify the executor to access the loopback object via `app.loopback`.

Fall back to `require('loopback')` only when `app.loopback` is not set
(loopback versions before 1.9).

This change makes it possible to use loopback-boot inside loopback unit-tests among other things.

/to @ritch please review.