Add PDF Normalization

#566. Still need to fix some coffeescript syntax, use random.Id, add a database migration, change `files` to `cached`, and update comments.
We said you will abstract this function out so that we have only one implementation of it in our codebase.