Update contacts.php

May apply to #452
Update exampleFunctional.php

Fix by @NulByte
Fixes #461
Update socket.php

Another fix for #461
Implement new method for code request token generation
Add hex2bin replacement for php <= 5.3 from @atans
urlencode the token
Merge pull request #466 from pastoso/master

Implement new method for code request token generation
Merge branch 'master' of https://github.com/shirioko/WhatsAPI
Replaced hex encoding with base64

Makes your constant strings shorter and solves compatibility issues with
older PHP versions.
Replaced pack with raw output
Fixing Windows caseChange filename bug
Fixing Windows caseChange filename bug
Fixing Windows caseChange filename bug
Rename Files to support/mimic Class Names they (will) represent. (2)
Add Namespace to project files. (2)
Add ide folder to gitignore (2)
Fixed some namespace issues (2)
Moved WhatsApp demo into the Demo folder. Will be updated later.
Fixed sendStatusUpdate. Waits for server to reply with success.
Updated composer.json with more details