Added context-sensitive actions

Uses rather makeshift data binding system. Pretty ropey, but good for
shits n giggles.