Fixups for Text revisions

* Proper use of <%= request.getContextPath() %> to create links relative to current environment
* html tag open/close cleanup