Node has been updated to send a endevent each time it is stopped
removing useless code (replacing two test by one)
Merge branch 'master' of https://github.com/appsgate2015/appsgate into local
fixing regression on switching lamp to a color
Fixed domicile for state