Added SSH functionality to pull entire folders

Added functionality to pull entire folders which is used when getting
heatmap data. Also added minor error checking of user input to SSH
module.