Adding api actions for triggers

Adding the actions under the trigger controller to handle
adding/getting/updating triggers and trigger types.