fix String.match() with non-regex parameter
add index and input value for regexp.exec result array
Merge #489 r=@kevinmehall: Fix String.match() with non-regex parameter, add Regex.exec result properties

Cleanup of @micnic's #485. Fixes #482
Adds encodeURI and decodeURI
Fixed encodeURIComponent decodeURIComponent
Merge #490 r=@kevinmehall: Adds encodeURI and decodeURI

Notes: This PR doesn't account for surrogate pairs.