Added a preferences object, and the "manualReferenceSanitation" preference, along with a helper method, which prevents sanitize from automatically sanitizing references.