Feature/update templates

Minor cleanups to `hadoop-distributed` and lots of memory-saving options on `hadoop-singlenode` template.