Move errors/exceptions to errors module

Fixes issue #11.