radeon_replay: Refactor helpers to print the trace on stderr

This crates a trace similar to the one output by cb2replay, and allows
diffing of the two traces. Port IO operations are not output.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
NOTFORMEGE random stuff that does not yet have a place
More fuced up useless shit
NOTFORMERGE: Makefile easy for me