sets boolean for return value to reduce the number of returns in the openURL handler
moves returnValue for viewpost URL
replaces NSRegularExpression with dictionaryFromQueryString for query string parsing