transmission checker, lockfiles, allow xbmc to exit without delay, timer before allowing shutdown after activity

Hi,

Christoph's pull request reminded me that I made a lot of changes of my own as well without committing them.
I've added a lot more options (see settings file), sorry for not committing them in smaller parts.
Pick whatever you think is useful, I won't be offended if you leave stuff out ;-)

Best, Hans