Added contact sync v2

Ported from yowsup, replaces
https://sro.whatsapp.net/client/iphone/iq.php
Returns decoded JSON object, need to build a simple parser.
Updated contact sync v2

Added JSON parser, returns array of existing users.
Non-existing users are skipped.
Updated comments.
Updated contact sync v2

Updated field from lastseen to lastupdated
thanks to alist3r
https://github.com/alist3r/yowsup/wiki/Contact-Sync-V2-API-results-guide
Updated contacts sync v2

Changed constructor to accept single phonenumber as well as an array of
phonenumbers
Split login method

Added method to login directly using password. This will skip the
credentials check.
Merge pull request #315 from shirioko/master

Added contact sync v2
Merge branch 'master' of https://github.com/venomous0x/WhatsAPI.git
Fixed typo

Issue 314
https://github.com/venomous0x/WhatsAPI/issues/314
Optional nickname

Made nickname optional, Issue 301
https://github.com/venomous0x/WhatsAPI/issues/301
Prevent confirming messages to yourself

Issue 293:
https://github.com/venomous0x/WhatsAPI/issues/293
Automatic JID conversion and several new methods

Hopefully got rid of the long standing issue of using numbers instead of
JIDs. This method will always output a JID whether you enter a number or
a JID.
Added several methods taken from WhatsApiNet (C#)
Added GetProfilePicture

Added GetProfilePicture: fetches profile picture and stores it in
pictures/[JID].jpg
for some reason only thumbnails work at the moment, need to look into
this.

Fixed SendPresence() sending empty name attribute when no nickname was
provided, resulted in xml error protocolnode.
Included GetProfilePicture() output folder

Added placeholder in /src/php/pictures in order to add output folder to
repository
Updated testprotocol.php

Added GetProfilePicture() to retrieve large profile picture, fore some
reason it magically started working again :o
Replaced five Message() calls with just one to protect user from being
blocked.
Reverted changes to Nickname

Nickname mandatory again, resulted in xmlformatting errors.
Added support for both profile pictures

Large profile pictures are stored as "[JID].jpg" and previews as
"preview_[JID].jpg"
Added support for receiving images

When receiving an image it will be downloaded in /src/php/media. It
saves the included thumbnail and downloads the original image by its
URL.

Added placeholder file for /src/php/media in order to include it in the
repository.
Added SetProfilePicture

Enables you to change your profile picture. Example included in
testprotocol.php as well as a demo profile picture in /src/php/media.
AFAIK only JPEG is allowed.
Added WhatsMediaUploader class

Added class to upload images to whatsapp using the updated protocol.

https://github.com/tgalal/yowsup/commit/f586ead9ebec89b841ec736f0dc330b06a7f8917
Fixed sending images

Fixed image file upload/request/send.
Added sending demo image to testprotocol.php