minor cleanups

* use the same json token parsing function everywhere
* cleanup now un-used functions in jsonc_missing
* minor function naming cleanup in mod.c
* add missing prototype to mod.h