Improve pretty printing of failures
Use inmemory relation for pretty printing of failures
Generate server side joins

Passing gateway to next_operation does the trick
Reenable generation of joins and product