Fixed incomplete str_replace
Automatically add leading + sign if necessary
Added photo support for vCard
Fixed sending media and vcards
Fixed vCard photo encoding
Removed unused experimental code
Merge branch 'master' of https://bitbucket.org/shirioko/whatsapi
Fixed null pointer exception for IQ node
Cleaner solution to previous fix
i get this in the node 


ProtocolNode Object
(
    [tag:ProtocolNode:private] => stream:error
    [attributeHash:ProtocolNode:private] => Array
        (
        )

    [children:ProtocolNode:private] => Array
        (
            [0] => ProtocolNode Object
                (
                    [tag:ProtocolNode:private] => system-shutdown
                    [attributeHash:ProtocolNode:private] => Array
                        (
                        )

                    [children:ProtocolNode:private] => 
                    [data:ProtocolNode:private] => 
                )

        )

    [data:ProtocolNode:private] => 
)
rx  <stream:error>
rx    <system-shutdown></system-shutdown>
rx  </stream:error>
index.php edited online with Bitbucket
Merged in manufuentescr/whatsapi-1/manufuentescr/i-get-this-in-the-node-protocolnode-o-1393428080270 (pull request #4)

i get this in the node
Merged in superbalgas/whatsapi-2/superbalgas/indexphp-edited-online-with-bitbucket-1393446548024 (pull request #5)

index.php edited online with Bitbucket
Merge branch 'master' of https://bitbucket.org/shirioko/whatsapi
Fixed last seen event firing
Added support for changing nickname on the fly
Fixed user agent in media uploader
Fixed upload and cleaned up code
Removed Imagick support

Replaced with more commonly used GD Lib
Fixed bug with lastId and queue

$this->lastId was not being reset so every message after the first one
would be pushed into the queue instead of to the server