Added working trigger system with a few example implementations.
Other minor changes to allow the above addition. See changelog for details.