I think this should be split out into a parse helper for the charmbrowser. Given the 'path' parse it into the object for state.