Initial parts of the dag editor

![image](https://cloud.githubusercontent.com/assets/1390651/4142352/1cb5818a-33b8-11e4-9225-15ce035e2063.png)