interface: replace 'json' with 'yajl'

and remove 'optparse' with --stream option
interface: minor style fix