Improved BasicEventHandler

- Added thread safety
- Ensured that events cannot be dropped (using queue)
- Added simple load balancing by only dequeing one action per unity
frame