Make use of item_groups.json in C++ source

This ports all the mapitemdef.cpp entries to a JSON file and fully replaces the cpp definitions with JSON ones in source.