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).