Add errors submodule to errors

errors.errors contains regular JavaScript errors. I need to move the
existing functions in errors to errors.handlers.