Killed warnings: added types to vars etc. Also added ...args to functions that are callbacks for ()* regexps
Each regexp replace callback function now has ...args and should not crash with too many arguments. ParserTest and EventTest are passed.
Merge pull request #3 from aimozg/master

Killed warnings AND it works