Improve trigger API to accept context and allow a list of triggers.
Minor style edits in the plugin initialization.