New option to shutdown parent process first.

Option name = stopparentprocessfirst

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Properly read StopTimeout from configuration.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Unit tests for PR #47 and minor refactoring

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Merge pull request #53 from oleg-nenashev/PR_47_refactoring

PR #47 - merged version