Refactored to reflect changes in react-router utilities.
It should now work with react-router 0.9.x and 0.10.x