Init script fix and re-use agent_common for zabbixapi gem

* Make init script sleep for 3 seconds prior to shutting down.
  This is to avoid a corrupt sqlite DB upon first run. HACK -
  a better method is welcome