Merge pull request #3 from bodepd/dev

Dev
Merge pull request #4 from bodepd/fix_typo

Fix typo
Merge pull request #5 from bodepd/fix_your_face

Fix your face
Merge pull request #6 from bodepd/nil_error

Remove nils from filter
Merge pull request #7 from bodepd/readme

Rewrite README to indicate face usage.
Merge pull request #8 from bodepd/more_work

More work
Merge pull request #9 from bodepd/resource_work

Resource work
Merge pull request #10 from bodepd/resource_query_refactor

Resource query refactor
Merge pull request #11 from bodepd/remove_unneeded_topscope_require

Remove topscope require
Merge pull request #12 from bodepd/master

Refactor functions to not use face as API
Fix issues with filter munging

This commit resolves two minor issues with munging of the
filters.

1. Ensures that the node facts filter is always compared to the
existing keys as an array.

Previously, it was using .incude? on a string which was returning
all facts that matched the facts strings. This was causing ipaddress_eth0
to match ipaddress and ipaddress_eth0

2. Ensure that all filters that accept a list are properly munged to arrays.
Merge pull request #13 from bodepd/fix_array_munge

Fix issues with filter munging
Fix query node to remove active only filter.

Query node should not filter by active_only node.
Query puppetdb setting from puppetdb.conf.

Previously we were assuming the host as localhost, this commit changes
the behavior to query the puppetdb.conf setting. We are still not using
the secure port because SSL cert issues.
Add query_facts function for Puppet.

This adds query_facts function for Puppet.
Remove json requirement and use pson instead.

Puppet have pson built in and this removes the json gem requirement.
Fix query filter to captalize type correctly.

Previously the first character of the type is capitialized when it
should be capitalized for every word. This change updates Foo::bar to
Foo::Bar so define resource types can be filtered properly.
Merge pull request #14 from nanliu/tb/poolmember

Improvements to puppetdb query
Fix needed require for puppet 3.x
Use Puppet http pool and HTTPS by default

Recycle Puppet's connections to PuppetDB, they should be over HTTPS by
default.