lots of refactoring related to json and .def files

*about 50% done
*modified json11 to accept boost::string_ref
*added deleted functions to the json helper functions to prevent
unintended implicit conversions