medialize/URI.js — Issue #4: Manage subdomains
Author: juandazapata
Created: 2011-12-29 15:30:17+00:00
State: open

It would be nice if the library supports subdomain management as well.

__Add a subdomain: __

```URI("http://example.org/foo.html?hello=world").addSubdomain("signup"); ```
Returns
```http://signup.example.org/foo.html?hello=world```

__Add another subdomain: __

```URI("http://signup.example.org/foo.html?hello=world").addSubdomain("another"); ```
Returns
```http://another.signup.example.org/foo.html?hello=world```

__Remove a subdomain: __

`URI("http://example.org/foo.html?hello=world").removeSubdomain("nonexistant"); `
Returns
`http://example.org/foo.html?hello=world`

__Remove a non-existant subdomain: __

`URI("http://example.org/foo.html?hello=world").removeSubdomain("nonexistant"); `
Returns
`http://example.org/foo.html?hello=world`