Fix critical bug in uploading data

-Send correct headers (JSON)
-actually parse response to check it was successful
-don't delete history if it was unsuccessful
-add entry to status page to prove uploads are working
Update project for new version of gradle