Add scrutinizer badge, reduced complexity on Config class and bugfix on Session clean() function