Fix trigger api

Add 'active' param to trigger.
Merge pull request #5 from wdholmes/master

Fix trigger api