fixes #1770 - Refactored rdeckfacts definition to use facts_hash
(cherry picked from commit 86e9a056e5a1d24b9532674d5f14762a1bd9ab78)
fixes #2779 - permission problem with non-admin adding puppetclasses to hosts and hostgroups
(cherry picked from commit 05fbe52cacb64700af76f8f072b2ff5cd16c23cc)