Fix regex for detecting Cesium.js to avoid a false positive.

Fixes #1028.

Add some specs to check that the regex only matches expected URLs.  Also use the Uri class to resolve relative URLs rather than string concatenation, which would incorrectly turn a base URL of `''` (i.e. `<script src="Cesium.js">`  into `'/'`.