add put method to TreeherderRequest

I refactored the TreeherderRequest.send method to allow non-post requests. I added a post method to mimic the former send api. @jeads can you give me your opinion on that? I'm happy to add a put method if you are happy with the implementation so far.