Merge pull request #1 from adam-vessey/7.x

Use drupal_static().
Merge pull request #2 from adam-vessey/7.x

Add license and cleanup variable.