revisions.js: levelRevisions -> revisions
break out logic to lib-folder
2.0.1