Ensure Target Blank for Content Links

The rich text editor used so far sometimes failed to set the target
attribute on anchor tags. Extract all link behaviour related
functionality from ready.js to a separate file and enforce target
blank attribute.