Refactoring of device controller to common style.
Removed inefficient model population and instead only changing properties of model updated and model sent to web socket.