Eliminate from/to_json_hashref

This commit makes the from/to_hashref into a version that is more
compatible with the json representation so we don't have to have two
competing hashref representations.
stop importing to_json and from_json from JSON library
Implement and test from_json
fix link external_output