Redefine GPhoto2Error and import into SWIG modules

The new version of GPhoto2Error has a 'code' attribute that is set to
the error number, so it's easy to test for particular errors. The SWIG
modules now import GPhoto2Error so they can raise the same exception
when needed.