Updated bash

Updated managesites.sh to use bash functions instead of repeating similar code.

Change both scripts to use a single read line for user prompts

Signed-off-by: Chris Wilcoxson <chris@slushman.com>