Add Error and IOError classes

These allow flexible handling of errors from many system calls.