Added support for put requests and endpoints for updating users

There were a few endpoints to updating a user that I needed in my app so I added them.  I'm sure that the endpoints in the discourse app are bound to change.  The users controller is pretty ugly, wish I had the time to refactor it.  

The `upload_avatar` action might need some custom headers to get a multipart file across.  Working on that now.