Payment processor api

Adding an api for PaymentProcessor (with tests).
Extending the event api to allow creating an event from a template via api :)