initial deis plugin and some refactoring of ssh module