Renamed state variables.

context -> panel
node -> left
resource -> right

The reason is, that we need a finer granularity in the state, not only
top level node ids (node, resource).