Add media links option for attributes

Added a "mediaurl" optional variable to Globaloptions. When this is set any attribute value will be tested against it. In case the mediaurl string is found, the attribute value is rendered as an hyerlink, with "mediaurl" as the base url.