Moved a lot of utility routine in one file
Moved all utility routine in utils. Updated all commands to use utils
Moved safe_prompt in utils.py