progress!
some unused vars/cruft left in work.c
as the glitch dev moves faster than code cleanup
ppmsupport/work/main split possibly not making sense
and should possibly be changed

Signed-off-by: Leo Bärring <leo.barring@gmail.com>