Don't rely on implementation details of 'struct event'

- Use dynamic event allocation functions instead
- Remove deprecated header file
Pass event_base object into PubNub
so that libevent usage is thread-safe in the face of other libevent usage in the same process
Add API for setting root CA certificates for SSL connections
tests: Add SubscribeMultiSubUnsubLeaveFlow