nagios-tmpl-notification: prototype, not fully functional

first implementation, incomplete, but a good prototype.
escape the value passed to sed
minor bug fix. Removed duplicated code.
removed useless -O option. ignore lack of NAGIOS_*
added some default variable formatting
minor code move / reorganization
check-connectivity: fixed -T option

-T option was broken, not included in getopt_flags