Support many and pattern register
Add phpunit tests for EventEmitter
Update .gitignore