Added an extra Makefile in the home folder to make the compile a little simpler
Abstract the session handling to its own module - significant code cleanups as a result