Keycloak.js integration

This branch was already rebased against master, is the most recent integration with Keycloak.js and also contain fixes for sending push messages with Basic auth