Work on binary support: templates and chunked response are OK now