Fixes to PubNub

Subscribe callback is now called before resubscribing.
Publish messages is now url encoded.
Added optional uuid parameter for whereNow.