sh-mode-hook indents and cleans up whitespace before saving shell script file.

go-mode-hook does same thing still, but only modifies before-save-hook for local buffer, rather than modifying global before-save-hook.