[WIP] Materialized views

Highly experimental, very early stage.