refactored npm and curl tasks
added tar helpers. tidied code