Make the MD5 hash more stable

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Move the PublicKeyManager to session (#21)

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>