Replace continuous capture by state-based trigger

fixes https://github.com/poljvd/script.service.hyperion/issues/4

possibly offers some performance benefit as well: we only capture a frame when we need one.

Tested on:

Ouya with SPMC 12: Fixes issue #4 
Ubuntu 14.04 x64: no degrading effect