Rearranged ClientError and Error

Previously, ClientError (which extends error) was being called before Error, which caused a PHP error
Merge pull request #52 from johnhebron/patch-1

Rearranged ClientError and Error