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