Simplify custom error definitions
Simplify custom error definitions

Use ES classes to simplify the definition of custom error types in the
extension.

hypothesis/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension,hypothesis/browser-extension