Use angular JSON methods for socket ops

Changed conversion of incoming/outgoing data to angular specific JSON methods. Especially removes angular properties $$hashKey, $promise or $resolved that otherwise cause issues when inserting in databases (i.e. mongodb).