Fixes issue of Accessing static property WhatsApEvent::$event_callbacks as non static
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
Updated socket handling

Changed socket calls from socket_*() to fread() and fwrite() to simplify
things (saved one line of code!) and made the socket persistent. This
"should" enable using AJAX calls to send and receive messages without
the need to log in for each AJAX call (still have to test it).
Added AJAX chat example

Added simple AJAX chat example to /src/php/ajaxDemo.
You have to enter the contact phonenumber in index.php, and your
credentials in socket.php.
Start the demo by going to index.php.
This will start a socket listener process in the background. This
process will pull and push messages to and from the $_SESSION variable.
The queues for inbound and outbound messages are stored in the $_SESSION
global variable.
At this time only sending and receiving text messages to and from a
single contact is supported.
I plan to add contact picture, composing status and message delivery
status to this example. If there is enough interest I might also create
a new repository focused on this :)
Now excuse me while I'll try to get some sleep, been up all night, it's
6:21 AM :")
Added onProfilePicture event

Added onProfilePicture event so the user can decide for himself how he
wants to handle the received profile picture.
Also added PollMessages() to SendMessageNode() and sendStatusUpdate() to
ensure delivery.
Updated ajaxDemo

Added contact's profile picture to conversation demo.
http://dl.dropboxusercontent.com/u/68235039/whatsapiajax.png
Added image support in ajaxDemo

AjaxDemo automatically downloads and displays received images.