merged common class
refactored common.php
removed base_path for data stuff
global cookie_lifetime
language stuff
minor cleanups
Merge pull request #368 from daeks/292

Enhancement: Refactor common.php to be a class