Updated Travis setup [ci skip]
PHP renderer generator: moved source optimization routines to their own class