removed testing functions for pubnub, added sudo:false for travis-ci, changed pubnub server connection initialization