Move ssh out of external and into lib

This module does not belong in external - it cannot be replaced by an external system module.