Implement session feature

This is not complete implementation of ephemeral nodes, it's just creation/update of session.