(maint) Fix improper use of function try blocks.

In C++, function try-blocks implicitly rethrow the caught exception.
Therefore, the use of them in the regex adapter is incorrect.
Additionally, since the regex adapter isn't fully constructed, the _err
member cannot be used in a catch block and doing so will likely result
in a segfault.

The proper fix is to call the assign member and catch the exception it
throws.
(CFACT-73) Fix binding to the latest ruby available.

Instead of just assuming there's a symlink to the latest ruby library
available, search the library directory for all versions of libruby and
use the latest one.

This allows us to automatically find libruby on systems where the
symlink does not exist (such as Ubuntu).
(CFACT-72) Log information during ruby library search.

While searching for the ruby library to use, we should be logging where
we are looking for the library and the candidate libraries we have
found.
(CFACT-60) Implement memory facts for Linux.

Implementing the following facts for Linux:

* memory - structured fact containing all memory facts
* memfree - free memory
* memfree_mb - free memory in mebibytes
* memsize - total size of memory
* memsize_mb - total size of memory in mebibytes
* swapfree - free swap
* swapfree_mb - free swap in mebibytes
* swapsize - size of swap
* swapsize_mb - size of swap in mebibytes
(CFACT-60) Implement memory facts for OSX.

Implementing the following facts for OSX:

* memory - structured fact containing all memory facts
* memfree - free memory
* memfree_mb - free memory in mebibytes
* memsize - total size of memory
* memsize_mb - total size of memory in mebibytes
* swapfree - free swap
* swapfree_mb - free swap in mebibytes
* swapsize - size of swap
* swapsize_mb - size of swap in mebibytes
* swapencrypted - whether or not the swap is encrypted
(maint) Fix comparison of function return values to zero.

In a few places we were comparing certain function return values to "not
0" to check for an error condition.  The documentation of these
functions indicate that they return -1 as expected on error.  Therefore,
the comparison should be to -1.
(CFACT-88) Replace string utility functions with those in Boost.

Replacing the following string utility functions with Boost string
algorithms:

* starts_with
* ends_with
* ltrim
* rtrim
* trim
* tokenize
* split
* to_lower
* to_upper

Also removing the unused ci_string type.  Boost has functionality for
doing case insensitive comparisons.
(CFACT-51) Resolve DLL search issues in dev environment

Switch Boost to static libraries, to avoid having to ship Boost DLLs.
Put all binaries in the same directory to avoid DLL search path issues in dev environment.
(CFACT 70) Add the kstat kernel information library to solaris linking

KStat provides information that is useful for resolving several
facts about the solaris kernel. This patch links the kstat library to cfacter
(CFACT 70) publish uptime fact for solaris

Before this patch, solaris10 did not report uptime. This patch adds the support
of uptime fact to solaris. It does this by relying on kstat library, which is
used to lookup kernel information. If the library call fails, it relies on
/bin/uptime for the uptime fact.
(CFACT 70) Add processor facts for solaris

This patch adds solaris specific processor facts. For this it utilizes the
kstat linked datastructure, which is added in by kstat library. Solaris
has the concept of three levels of processing units: physical CPUS, multiple
cores per CPU and, multiple hardware threads per core. This is reflected in
the provided facts.
(CFACT 70) Add posix facts id and timezone to solaris

This patch adds the posix timezone and id facts (unchanged) to solaris
These are the only posix facts left that can be added directly to solaris
without change in behavior.
(CFACT 70) Correct the operating system resolver to match facter

Previously, cfacter output for osfamily (SunOS), operatingsystemrelease(5.10),
and operatingsystem (SunOS) depended on the posix implementation. However,
the ruby facter implementation provides osfamily (Solaris),
operatingsystemrelase (10_u11), and operatingsystem (Solaris) which are
different from the barebones posix. This patch corrects the cfacter so that
it outputs values matching ruby facter.
(CFACT 70) Correct the kennel resolver to match facter for solaris

Previously, cfacter output for kernelversion and kernelmajorversion (5.10),
were not in line with the ruby facter output (Generic_xxx).
This patch corrects the cfacter so that it outputs values matching ruby facter.

To do this, the kernelversion and kernelmajorversion needs access to the uname
output. This patch adds two virtual functions that are wrappers of the
originals that can take uname output, and are called instead by the
resolve_facts method.