Changed $session in bootstrap.php to a Session mock for tests an CLI purposes.