add Error type; remove all uses of errors.New; also, panic on registration of dupliate extensions