ugtrain: move the adaption to new files

src/adaption.cpp
src/adaption.h

Functionality is exactly the same.