Adds resolve to the router.
Merge pull request #51 from jmeas/router-resolve

Makes use of the ui-router's resolve parameter.