Refactoring of Relations
Moved aggregate functions to Relation and added #compute to joined relations