refs #1032 - Don't use a regexp search for string search in resourceExists
Merge pull request #1033 from diox/resource-exists-no-regexp

refs #1032 - Don't use a regexp search for string search in resourceExists

Please note that this breaks backward compatibility when passing a string to resourceExists(); previously the .search() String method was used, preventing passing url strings containing a question mark easily. We're now strictly checking for an exact match. For searching for a more flexible pattern, you can keep passing in a RegExp.