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