Make external links open in new tab [story:43811003]

- make relationships form refresh the page
- jQuery-1.9 compatibility: replace 'andSelf()' with 'addBack()'
- jQuery-1.9 compatibility: 'trim()' rendered template before adding to DOM