Calendar of Events: Direct linking now respects the source link target attribute and related code has been optimized.

Fixes #6402
Merge pull request #6403 from pjackson28/enabletargetcalevents

Calendar of Events: Direct linking now respects the source link target attribute and related code has been optimized.