Simple fixes for type warnings and use better HTTP machinery

https://www.pivotaltracker.com/story/show/60810250

Just a few minor emendations to places where warnings were unneeded.