add initial install
fix permission
add deps for ext/gmp
add deps for ext/intl
add deps for ext/mcrypt
add deps for ext/tidy
use the generic TRAVIS environment var to check for travis (see http://docs.travis-ci.com/user/ci-environment/)