Making optional JSON response mixin for views. Fixes for the contact form view to support AJAX.