Fix chrome-extension:// URLs with query params.

Also fix some eclipse warnings.