Rename GrammarFactory to grammarFactory

Usually in Javascript, names that are capitalized are classes or
objects that you will `new` up. The grammar factory is not one of
these, so make its first letter lowercase.
Re-organize `require`s
Alphabetize some of the `require`s
Merge branch 'cleanup-names'