Use cJSON instead of writing a custom JSON output format.

This addresses Issue#32.  I have tested that this code builds and runs.  I had to tweak the config for the ZeroMQ output stuff, so if @jrossi can sanity check, that would be ideal.  I also added a .gitignore.