First cut at supporting "redirect" behind an ssl offloader (proxy)

Take a look at this. One path works, but i've put comments in about another path that I think also needs to be changed, but I'm not exactly sure how. 

Also the methods like getRequestProtocol are wierd in that the format of what they return is completely different for normal ("HTTP/1.1") versus when forwarded ("https"). So they're hard to work with. Is anyone using them?

And of course there's the fact I can't test this very well on heroku, because heroku pulls down the maven deps directly to the server. And I don't have my own snapshot repo setup to push my build to. :-(