Given an array of terms, generate a permalink

This is a top-level helper function that allows scriblio to generate a URL given a simple array of term objects.
Cache for the whole life of this function
Code review fixes
Merge pull request #39 from borkweb/top-level-permalink-function

Given an array of terms, generate a permalink