Refactored events POST methods. Now also supporting files, in and out.