Renaming uriParser
Refactored url parsing into a factory service
 - Moved code from the directive to a new service
 - Small clean up to the url parsing logic
 - Closes issue #3
 - Changed uriParser service to return a function instead of an object