Changed the mongoose shema for Event so that it is totaly empty, meaning that we are not going to be able to store any value on the event from this app
Changed the name of the vote shema from Vote to Opinion and added voteId and rate as values
Re-enabled socket.io for the app. This means that it is now not enough to just serve up the files in frontend/ to have a working app.
Changed the object that the form values is stored on to be opinion instead of rate and vote
Renamed the voteSendt event to newOpinionSendt
Updated the Opinion shema with both topicId rate and chosenVoteId
Added async to the backend
Changed the "room" id from the url hash to the event id
Changed the event newVote to newOpinion and fixed the aggregates to match the new Opinion shema.
Moved the highchart creation logic into a service (HighchartService)
Remapping the socket.oi event graphUpdate to a angular scope event (graphUpdate) that is consumed when the user has sendt a opionion to the backend
Split the graphUpdate event into ratingGraphUpdate and votingGraphUpdate.
Had to drop the votingGraphUpdate and ratingGraphUpdate scope events because the angular scope evnets can't send data
Now the rating graph works
Cleaned up the variable names in graphController.js
Now we are checking that the chart update event actualy belongs to the graph we are displaying
Removed comments
Changed the alertsFeature/ into a signle file module (my.alerts)
Moved all of the services into scripts/Services.js
Moved the socket connect handler into the event request so that we have the event id before socket connect.