Update rest.js

This change adds support for multipart/form-data content type.
it's needed for sending [statuses/update_with_media requests](https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media).