Rudimentary templates working thanks to extensive overhaul of scoping mechanism. Context is soon to be iradicated and the concept of references is likely to as well