Split out getLinkAttributes() in .htmleditor JavaScript for more flexibility

Saves us from overwriting the whole insertLink() method just
to add another option.
Removed .fieldgroup styles specific to one UI use case
Restored inlined styling of .fieldgroup (same UI as in 2.x)