base tag fixed

Fixed the handling of base tag (<base>). Now if the tag exists takes it href and uses it to fix the stylesheets and other head elements. Then, the base tag is erased.