DEVELOPER-644 prevent author leakage

As JavaScript has no block level isolation of variables, we were leaking
authorship and ratings from developer material to the next.
Merge pull request #286 from pmuir/DEVELOPER-644

DEVELOPER-644 prevent author leakage