Added a Common class library for error handling etc.