Added basehref public var

I added a new var for basehref, to allow links to be rendered with a base href value if defined.  Otherwise links will remain relative.