Merge pull request #12 from Restocheck/hotfix/contact_not_found

check for $json['reason']
Add dealsGetDeals method to be able to get a list of deals

This is implemented the same way as crmGetContacts(), but using the
deals naming convention.
Merge pull request #15 from sumocoders/feature-get-deals

Add dealsGetDeals method to be able to get a list of deals
* Changed code to PSR2 coding standard
Merge pull request #16 from Restocheck/feature/PSR2

Changed code to PSR2 coding standard
Add functionality to get departments from the api
Merge pull request #17 from sumocoders/feature-get-departments

Add functionality to get departments from the api