cleanup imports
pagers - raise 404 when page is empty
fix potentially unassigned variable
add ext links facilities and some tests, refs #888
add wikilink to rating tools, refs #867