First pass at new referential framework

If you didn't get that pun, shame.