Fixed _config.php including '<?php' in output.
Made logging optional.
PaymentController improvement and testing