Added module for FindJansson
Bad form, big commit.

Split printers and JSON encoding functions into their own files.
Added dependency on jansson
Bug fixes, esp related to modulo arithmetic.