Issue #345. Fixes #345. Update sample is several ways:
- Use ui-router module, no compat
- Don't use $routeProvider, only use $urlRouterProvider
- Set up the index state '/' via a state config
- Split the index code into smaller files - states.js, styles.css, factory.js, contacts.json
- Use more best practices, e.g. loading contacts as json via $http, putting global utils into 'util' factory
- use ui-sref in templates
- Example of regex parameter
Merge pull request #347 from angular-ui/update-sample

Issue #345. Update sample.