added the session handling. moved the logging setup into a static class
added error log level function
starting to flesh out the more complex session handler functionality, made sure that the main entry point uses this instead of the default PHP session stuff