Miscellaneous fixes [MJ-232]

Generalized template tag
Removed confusing table styles
Turned the details table into a collection of divs and made it a formbox
Truncated the search url to prevent it from breaking layout
Added target=_blank to links