Sessions Integrated

Everything now runs again. I expect there to be some bugs however.