Added session_start() to predispatch.php

Added session_start() to the predispatch.php include so that the
session is setup before any page content is streamed.
Added login query and session setup

Added login query to check the username and password MD5 hash; if it
exists in the database, set the session up.
Added logout and session destroy

Added logout and session destroy code, showing the session details
before and after.