Refactor endpoint configuration

The endpoint configuration is now much closer to the pattern
laid out by the pusher-js-client library.

Update version - breaking API changes

Introduce a changelog