Codestyle
Only include middleware when EmberCLI is enabled
Rename Middleware to LockMiddleware