Add push

This Pull Request adds push messaging to the javascript SDK
That's what the original node one did. I will change that.