Updates to the PHP template

Updated the PHP template to work better when libevent is enabled.
Updated Thruway to v0.2.*