Refactored emulator glue code

- Common code lifted to superclass
- Enhanced C64 glue to automatically choose the correct command line
options for cartridges, cassettes and disk files