Refactoring remote utils

* Add get_stderr flag to execute_command
* Add raise_when_error flag in execute_command function which raise
exception if command return non zero code
* Add waiting for generating id_rsa keyfile

Change-Id: Ica112e6b226a45ddc48e6f315b2c854da9ff292a
Merge "Refactoring remote utils"