Using refactored URL matcher detection in $state, fixes #154
 - Refactoring $urlRouterProvider.when() for improved composability
 - Adding tests for $urlRouterProvider