Code review fixes based on feedback from https://github.com/strongloop/loopback/pull/57