Add some RESTful behavior to the downloadHandler