Primitive functions

Includes digital logic primitive injection!
Is that Ariel?

(The code will be less ugly when we have actual namespaces and stuff.)