UC-647 Improve init scripts
http://track.sipfoundry.org/browse/UC-647

-processes are now killed by name

-If extra argument is provided to start function then we check to
see if process launched successfully.
There are 2 checks:
  -look in the process table to see if process was spawned
  -check if process is listening on a port.
  Both of these checks have a timeout.

- "restart" uses "start" that checks to see if process was successfully
launched

-Added "asyncrestart" function which calls "start" that doesn't do
any verification.

- Cfengine scripts now use asyncrestart instead of restart because
the additional checks would increase launching time of process

Added 4 new functions in the sipx-utils.sh file

  -checkRunningInstance
    - search in process table for process belonging to a specified user
    and related to a specified regex
    - checks to see if process is running and is listening on a port
    using netstat

  -checkRunningInstanceTimeout
    - checks to see if process shows up in process table for a given
    amount of time

  -checkIfListening
    - checks if process is listening on a port

  -killAnyOrphans
    - kills all related processes
    - first try with SIGTERM and if it fails try with SIGKILL

Modifications made to init script functions
- start()
    -no fork
      - kill all related processes
      - launch process
    - daemon:
      - exit with failure if another instance is running
      - launch process
      - if extra argument is provided to "start" function
      then :
        - check if process was launched
        - check if listening on port

- stop()
  - doesn't kill using pid found in pidfile
  - kills all related processes

- status()
  - uses checkRunningInstance

Defined timeouts
- maxTimeout - maximum timeout for process to show up in process table
is set to 25 ( sleep 0.5 is executed 25 times)
- maxListenTimeout - maximum timeout for process to listen on a port
is set to 60
- waitForListenPortTime - wait time for sipXconfig to listen on a port
is set to 60