Shell execute command refactoring

* Refactored `execute` and `execute_save_output` commands;
* Cleaned-up `ProcessExecutionError` exception;
* Added unit tests.

Change-Id: I21ae3d6347fb56c057e15c863056e2f39c599743
Merge "Shell execute command refactoring"