add reusable utilities

this code is taken from event-system.

includes:
- argument splitter
- class changer
- mapexit for debug server