dynamic allocation of output buffer for remote commands

closes #298
Merge branch 'knotc-dynamic-buffer' into 'master'

knotc: dynamic buffer for response

See merge request !284