Adding framework for subscriptions.

Adding framework to allow subscribing to happen. Currently javascript button collects needed information and toggles state, the connection to the backend however does not yet exist.  The setup for getting the information from the backend has begin to be added to user however. Waiting on some last stitching