Adding a secure flag to requests.

This is an updated version of
https://github.com/playframework/playframework/pull/1326, incorporating
suggestions in the comments, and including tests.
Merge branch 'add-secure-flag-to-requests' of https://github.com/kamatsuoka/playframework into add-secure-flag-to-requests