Daemonize, cleanup and fix UInput emitter, which now works.