updating travis yml to require twig/twig, updating to remove deprecated functions