Fixed fragments handling in URLs.

* Fixes #1.
* Ignores fragment in resolution phase.
* Adds fragment to the resolved URL.