Changed implementation of getUrlFragments service not to use  service.
Added createXhr service.