Misc fixes

This commit moves ini_set functions to common.php 

This commit also adds the option to set the cookie_path which should solve collision issues such as experienced in issue #110