Tons of cleanup, a handful of new features

definitionreference works with types now
	-corresponding editor panel works
the cleanup that we discussed earlier
node locations are not done yet