Add support for fc::variant in the JSON rpc, migrate a few network functions over