Moved PB code.
Fixed some session related bugs.
Merge branch 'develop' of https://github.com/Starcounter/Starcounter into develop