add remote process timeout
refactor remote module
refactor process module
add remove process timeout
fix problem that logs are not recorded when process failed to start
improve default envdef.py