Moved the Sessions class out of functions.php

The Sessions class has been moved out of functions.php and into
Sessions.php. In addition, Sessions is slowly being converted over
into using the database class defined in the constructor instead of
passing it around in all of the static functions