Make api?task=reports able to submit reports too #988

* Also make sure the user id is saved with report too #987
Merge pull request #990 from rjmackay/api-report-submit-fixes

Fixes for reports submission in admin API