main: added input frontend support.
frontends: added basic SDL input implementation supporting quit events.
frontends: added basic libcaca input implementation supporting quit events.
main: added support for quit events in machine main loop.