ugtrain: improve and move user control to new files

src/control.cpp
src/control.h

This introduces the macro 'list_for_each()' and improves the config
pointer map handling. We only need half the size for it, now.
Functionality is basically the same.