fixed serverside bugs
added test for REST API
fixed async bug in tests
the end of the old REST api v0.1
added tests working on GET Device
refactored to 2 DAOS key and device changed many things from callback to promises
added auth fields check in clientside implemented updatedevice
add packages to npm install
fixed bug in updateDevice
Merge branch 'philipp' of https://github.com/hackandtravel/opendoor into philipp

Conflicts:
	server/package.json
small bug in put key remeains (findandModify query doesn't work)
cors fixed
Merge branch 'philipp' of https://github.com/hackandtravel/opendoor into philipp

Conflicts:
	server/DAO/device.js
	server/DAO/key.js
	server/clientSide.js
	server/serverSide.js
	server/spec/api/api_spec.js
Merge remote-tracking branch 'origin/philipp'

Conflicts:
	raspberry/config.js
	server/clientSide.js