Stringify error codes in error messages. Add debug shim for debugging when geolocation API is missing.