server template: load middleware via require

Load middleware directly via `require({name})` instead of relying on shorthands provided by loopback.

Requires https://github.com/strongloop/loopback/pull/729

/to @raymondfeng @ritch please review