(CFACT-44) More fixes for Ruby compatibility.

* Adding a Facter.version method.
* Adding support for booleans in confines.
* Implementing exec and which on Facter::Util::Resolution.