Improve PaperTrailManager implemantation.
Add missing javascript for precompiling.