Tidy set_debug/mxt_release behaviour in mxt-app
Tidy set_debug/mxt_release behaviour in mxt-app

Moving these functions to the main() function means they are run properly for
the command line tools as well.

vincentbernat/mxt-app,boundarydevices/mxt-app,vincentbernat/mxt-app,barak/obp-utils,kdunning/mxt-app,kdunning/mxt-app,barak/obp-utils,boundarydevices/mxt-app