exceptions: Make ClientException and its subclasses pickleable

ClientException and its subclasses is unpickleable, which can cause hard to debug crashes. For example, current celery crashes when a worker raises an instance of any pyrax exception.
Can you move this up to the top of the file instead of within the method?