json view class sets content_type to text/json
add decorators to bind functions as views with a particular view class
use new decorators for `TemplateView` test