Implement mutli sessions and ability to configure capabilities. Fixes GH-1.