Refactor statistics support

Move ssh keys around and include starting ssh-agent.

I've got a good feeling about this one.