Target links to new window

Adding attribute target="_blank" to all links if option
"linksInNewWindow" equals true.
Changes after code review.