Add init.d file for nagios-api

Also updates nagios-api for proper cleanup.