refactoring Spark and Shark deploy scripts

Refactoring scripts to improve readability and reusability, as
well as clarifications to README