Add new parameter to pin.pp ($type).

This permits unifying the template and also specify other pinning criteria, like "origin".
Add type to the filename

Just to make it easier to identify to which pinning type each file belongs
Repeting $name fails. Change parameter to $package

Two resources with the same $name fails. Using package allows repetition of the "Package" entry.
Add shorthands for pin types.

This also set compatibility with previous versions.
Evaluate $type and $value as the other vars, for better logic
Error assigning variable. Can't be reassigned.
Use the $real_type to build the filename
Correct test specs
Corrected rspecs and defaults handling
Merge pull request #15 from netmanagers/master

Modified pin.pp to allow extra pinning types