Adding gitignore for switch binary.
Removing obsolete modules.
Moving deregistration of processor to destructor.
Fixing compilation error due to typo.
Fixing double free, and other bug.

The executor now frees the processors that are finished, instead of the
processor freeing itself at the end of its main loop.

This fixes a double-free bug as well for the executor.
Updating basic to use the new style.
One double-free error is actually still there :T.
Converting other examples to new setup.