Refactoring

Moved exitmap and handlers into different files.
All exitmap reloads are now performed out-of-band in a go routine.