Fixed socket changes, correctly integrated bluebird into angular.