Primitive functions

Includes digital logic primitive injection!
![image](https://cloud.githubusercontent.com/assets/281306/3870704/13b8f83c-20da-11e4-9e7a-9fe6633364e5.png)
Actual organic reaction to this diff. Nevertheless, :ship: