Made device use the database component.
Merge branch 'master' of https://github.com/NomeAutomation/NomeAutomation

Conflicts:
	src/com/nomeautomation/devicemanager/server/ServerProtocol.java