Simpler libcork error API

The libcork error API now only has (hash-based) error codes, rather than
separate error classes/codes.