Adding optional json output format

and plugging in travis