Added common.php with various utility function that will be used
throughout the application that do not have a place within any single
class.
Refactored bootstrap and httprequest to use the common.php.