Add back pdf/writer compatible with Ruby 1.9
Remove liquid gem.
Fix escaping, simplify footer markup.
Fix requiring of environment file from script/worker.