Corrected session code.
Renamed compatibility.php to frontend.functions.php.Moved frontend functions from class frontend to frontend.functions.php. Removed instances of strip_slashes_dummy. Replaced $this by $wb in a couple of places.Created file initialize.php, where all initializations now take place (moved from class wb constructor).