ugtrain: add malloc discovery preparation
libmemdisc: unify output for parsing
libmemdisc: retry reading the config

On SMP systems it can happen quite easily that the config is not
written into the input FIFO, yet.

So retry the non-blocking read 4 times with 250 ms in between.
This way we don't wait longer than a second for the config.
libmemdisc: disable debug output
ugtrain: add stack offset discovery

We send the discovery config to the discovery lib and parse the
output from the FIFO.

We don't call the actual trainer code but instead run in a separate
loop to read the stack offset from the FIFO. We use ptrace as well
to detect if the game is still running. The new stack offset isn't
written back to the in-memory config, yet.