Having PRIVKEY/PUBKEY set is reverted to not being mandatory again. So we can run cf-agent without localhost keys.
Fixed a couple of minor memory leaks.