Refactor common functionality in SensorServie so it can more easily be used with new mock classes.
Refactor common functionality in SensorServie so it can more easily be used with
new mock classes.

pixelrebel/st2,punalpatel/st2,dennybaa/st2,nzlosh/st2,nzlosh/st2,punalpatel/st2,dennybaa/st2,StackStorm/st2,peak6/st2,Plexxi/st2,Plexxi/st2,emedvedev/st2,nzlosh/st2,Plexxi/st2,armab/st2,Plexxi/st2,StackStorm/st2,emedvedev/st2,punalpatel/st2,pixelrebel/st2,StackStorm/st2,armab/st2,tonybaloney/st2,armab/st2,dennybaa/st2,lakshmi-kannan/st2,lakshmi-kannan/st2,peak6/st2,lakshmi-kannan/st2,nzlosh/st2,StackStorm/st2,emedvedev/st2,tonybaloney/st2,peak6/st2,pixelrebel/st2,tonybaloney/st2