initial deis plugin and some refactoring of ssh module

Remove all the above.