Encode/decode circular javascript object graphs in angularjs $http transformRequest/transformResponse