Enabled travis php extension for testing, close #109

1. Added APC, mongo, memcache, memcached, redis extension
2. Removed env configuration in .travis file to cut down duplicate builds, speed up building time
3. Fix some APC and memcache incompatible error for different versions of extensions