toomanydaves change to require url package

Require url package to do parsing and resolving of state url for location object