Updated the Request object to enable type capture on the attribute(String) method.

Improves the usability of the Request API, now that spark requires java 8.