Implement get_node_info().

Also be more consistent in variable naming, and ensure declarations are
done up front.
Initial support for ValueRemoved.