add check for REMOTE_HOST variable

Adding new content from latest linux check.
add SPOOLDIR varaible

Adding content from latest linux check
add run_cached function

From latest linux agent.
changed ipmitool check to use run_cached function

As in linux agent.
added waitmax file

to be installed in /usr/bin.  Also added to luggage Makefile.
changed ntpq command.

Now used caching and waitmax as in linux agent.
added fileinfo check
added spool dir check
updated local and plugins checks.
small change to os x agent
removed mk-job section.

Not ready for this.
fixed calls to stat command for os x
version number in Makefile.
debugging my changes.
Still debugging.
changed run_cached function.  Updated ipmi and ntp check.

Had broken these.  They seem to be working now.