Add event_base_reinit

Code gleaned from https://github.com/bzick/php-libevent
Merge pull request #1 from Automattic/master

Add event_base_reinit