This cleans up some of the code between core and UI for disassembling and dumping code blocks. Should help the QT UI in bringing up its debug UI since it won't have to deal with this garbage now.
This avoids code duplication in a bunch of places . I also moved the NVIDIA Optimus export into VideoCommon.