using brian fords angular socket.io library. I was having problems
where event listeners were being duplicated when switching back and forth
between controllers. His library takes care of that