Added support for opening links in a new tab

By default, when the "links" option is set to true, links open in the
same tab, but if the "externalLinks" option is also set to true, links
open in a new tab. Some people, including myself, really like to have this option.