Simplified and added pin check
Simplified and added pin check

This adds a couple methods for checking pinned nodes and matching nodes.
I added some global variables out of laziness, but meh.

the pinned node list is ... eww.

fnaard/pltraining-classroom,samuelson/pltraining-classroom,joshsamuelson/pltraining-classroom,puppetlabs/pltraining-classroom,fnaard/pltraining-classroom,joshsamuelson/pltraining-classroom,carthik/pltraining-classroom,joshsamuelson/pltraining-classroom,carthik/pltraining-classroom,binford2k/pltraining-classroom,puppetlabs/pltraining-classroom,puppetlabs/pltraining-classroom,carthik/pltraining-classroom,samuelson/pltraining-classroom,binford2k/pltraining-classroom,binford2k/pltraining-classroom,samuelson/pltraining-classroom,fnaard/pltraining-classroom