Handle resolution scopes

@titanous 
Should this resolve to `http://localhost:1234/level1/level2/folder` or `http://localhost:1234/folder`?