This series of patches is part of my project to have secnet handle intermittently connected hosts better - plus some yaks I came across on the way. This is still an RFC series. I haven't tested it at all yet, but I thought it would be useful to post it and get some feedback.