Make Device model local variable.
Move database settings to config/index.js.
Add development dependencies for testing.
Create DevicesService with tests.
Create separate config file for tests.
Create Gruntfile for automated testing.
Resolve conflicts in DeviceController and package.json