nanoc + pamflet support

Sending this for a review. I might need to add more stuff later, so don't merge yet.