Added 'ListSessions' and moved a lot of code to 'autoload'.