0.9.x nodaemon backport (rebase of #144 to 0.9.x branch)

I'm not sure if Twisted version pinning required, removed it from commit.
@jib @obfuscurity ?