Add basket management, session utility class and converted code to PHP 5.3