Cleanup unnecessary dependencies and migrate to JSON from JSON::XS