rewrite sshd_sftp3_cluster

Major changes include fixing data structs, making the current
infrastructure available to the previous sftp2 policy and cleaning up
the place a bit.