move stracelog2graph to srezic-misc
code reorgnization

Moved large part of the code into subs. Added a new --debug option for
controlling debug_output().