Changes required for HTTPS only

This PR contains the changes necessary to work with Twitter's API after January 14th, 2014. Twitter now requires connections to be over HTTPS. The notice is here: https://dev.twitter.com/discussions/24239