Daemonisation seems to work properly now. We add all the files we use to the preserve list, which is ugly but gets shit done.
Fix keyboard support

It's been a while, so I don't remember the full implications of the changes, but it seems to work...