Added support for subscriptions to the real-time API

I've added support for the real-time subscriptions API.
I've also added two files to show how it works. Pretty straight forward.