Add some profiling for xpattern
Add events, event handler base class

Also adding event arbiter
Add new backtesting module

This is the module to be used for backtesting going forward