Nsca checks, restart command and some other stuff

This pull request contains commits for : 
- adding a debug log helful to get launched commands
- adding return codes in dbsql module
- adding the RESTART_PROGRAM in external commands
- not raising dependency and freshness checks for passive only checked hosts


Sorry for sending a pull request with 4 so different commits ... but it is my first PR in the project :-)