(refactor) Integrates socket into the Angular front-end.

Needs a bit more back-end refactoring. @radicalsauce