Rename SNode to SessionNode
Add stack
Add ast cursor state pushing and popping