Shared mustache and keywords on document filter sentence

Add the ability to share templates with JavaScript and ruby.

Update the document filter pages to generate the sentence using mustache.


This will require a change to the deploy task to run `rake shared_mustache:compile` just before it runs `rake assets:precompile` but I am not sure where that change needs to happen.