Merge pull request #221 from wardi/master

Template fixes, various
tidy helper lists
tidy after_map routes
make normalize_strip_accents a helper
reimplement date_format helper as a macro, reducing need for "with context"
remove "with context"s
Merge pull request #222 from wardi/code-cleanup

Code cleanup, no user visible changes (hopefully)
Make link to JSON work in registry
Merge pull request #223 from thriuin/master

Make link to JSON work in registry
use normal input_block macro for wrapping multi-checkbox fields
remove popular from sort-by drop down
dataset view: reduce the number of indentation levels and ways of drawing attention to text (bold, italics)
dataset view: hide geographic region when not provided
dataset view: remove size column
make resource preview button look like download button