Fixes #228. Also renamed base exception to BaseException and made abstra...

...ct, adding a concrete CommonException subclass to the same package.