Implement lib/remote/ssh to Remote interface

Also add comments to the Remote interface