making changes to pass only payload for specific cases
removing deprecated api's
replacing history with detailedHistory
replacing history with detailedHistory
changes for extracting error object form http response and passing on with PubnubError Object
fixing unit tests