Restructure all of lib.sh and functions-opendnssec.sh.
- Added more checks to functions and made sure all variable are quited and local.
- Removed global syslog_grep_count_variable from lib.sh/syslog_grep_count().
- Added syslog_grep_count2 and grep_this_count2 that echos the count.
- Used syslog_grep_count2 in Enforcer/Signer start/stop count functions and added new global variable ODS_ENFORCER_START_COUNT / ODS_ENFORCER_STOP_COUNT / ODS_SIGNER_START_COUNT / ODS_SIGNER_STOP_COUNT.
- Added 2 new tool depend; pgrep and gsort/sort.
- Save test output in retries and failed tests
Rewrote ods_enforcer_start_timeshift() based on log_this_timeout, it starts Enforcer is the background and checks for output in syslog and if there has not been any output for the given timeout it kills and fails.
Change two tests that where afffected by previous changes.
Removing some whitespace
Fix ods_process_kill(), wrongly cherry-picked before.
Merge pull request #58 from jelu/cleanup-restruct-lib.sh-1.4

Cleanup restruct lib.sh 1.4