quick_dump: Refactor to allow future code
quick_dump: Refactor to allow future code

Extract everything possible, and create a main function which is pretty
darn simple. The goal is to make the various paths the program can take
based on command line options (one more is coming) more decipherable.

Signed-off-by: Ben Widawsky <73675debcd8a436be48ec22211dcf44fe0df0a64@bwidawsk.net>

mv0/intel-gpu-tools,rib/intel-gpu-tools,chenxianqin/intel-gpu-tools,yipdw/intel-gpu-tools,dlespiau/checkmate-test-igt,dlespiau/checkmate-test-igt,mv0/intel-gpu-tools,erikarn/intel-gpu-tools,yipdw/intel-gpu-tools,tiagovignatti/intel-gpu-tools,chenxianqin/intel-gpu-tools,rib/intel-gpu-tools,dlespiau/checkmate-test-igt,erikarn/intel-gpu-tools,rib/intel-gpu-tools,tiagovignatti/intel-gpu-tools,yipdw/intel-gpu-tools,erikarn/intel-gpu-tools,yipdw/intel-gpu-tools,tiagovignatti/intel-gpu-tools,chenxianqin/intel-gpu-tools,rib/intel-gpu-tools,dlespiau/checkmate-test-igt,chenxianqin/intel-gpu-tools,tiagovignatti/intel-gpu-tools,mv0/intel-gpu-tools,mv0/intel-gpu-tools,erikarn/intel-gpu-tools