Added a new url generation method to create a valid url from the state object
Merge pull request #232 from hatched/state-change-url

#### No QA