Fixed inconsistent line ending styles
Added octal to decimal conversion in initialize.php to create a proper integer value out of string file/dir mode constants.
Added some DB checking code to initialize.php
Cleaned-up some whitespace
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).