executor: remove direct reference to loopback

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