Added FragmentUrlProvider.
Fixed some whitespace and cleaned some namespaces.