Refactoring some session stuff. Allowing dot notation to access session arrays. Closes #1214.