Codestyle
Only include middleware when EmberCLI is enabled
Rename Middleware to LockMiddleware
Make lock timeout configurable