Moved exceptions to own namespace. Fixes #19.