Fix $transaction - return promise

$transaction method was not returning the deferred.promise object