Fix payment status export and AJAX changes
Fixes on master branch: #515 (closed) and solves problems with the payment status change in the admin.
I came across some things that we missed in the events refactor branch that I apparently broke.
Edited by Sébastiaan Versteeg