Started work on a javascript API (#4).
Views will have a global nodecg object available.
Admin panels will only be able to use it in .js scripts.
Sending now seems to work, listening does not yet
Fixed messages going from dashboard to views, views to dashboard will be fixed shortly.
Switched to simple .send and on('message') events rather than 'ncg-' prefix.
Fixed creating global variables in views, updated dashboard to be able to receive messages from views
Merge pull request #7 from nodecg/javascript-api

Merging javascript-api 
Finished basic Javascript API (#4)