now returning appropriate response based on header for xh2 vs iframe upload.
iframe response uses handlebars views to render html with the result json inline