Added support for changing state of services.
Merge branch 'test' into dev
merge.