Refactors sockets functionality to Ember.Object.