Updates

Hi,

These contain the updates you requested me to do, with the sole exception of memcached (I guess you know why ;-)

I've also added a "template" directory in the final commit, so that you can easily reproduce what I've done for other php extensions, should you want to. See the README file in that directory for the details.