move content block link abstraction out into a core helper class.

 See issue #242

Note that I'm not sure I set up the class properly -- perhaps it should be a "service" instead? I basically made it function like the "Content Helper" class that exists in 5.6.3.