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.

Play-Cache test was running out of perm gen space