fix travis ci build for php 5.2

memcached 2.2.0 no longer supports the EOL php 5.2 branch, so the solution is to either remove php 5.2 from the travis build, or to install memcached 2.1.0 as a part of the dependencies.

these code changes also separate 5.2 build process from the standard php 5.3+ composer build