title: Get root of website from NSString or NSUrl
body: <p>Any ideas how I can get the root of a website from an NSString or an NSURL? So if my URL was  <strong>http://www.foo.com/bar/baragain</strong> how would I get <strong>http://www.foo.com/</strong>?</p>