Fix urls for error-ed modules

Client-side controllers were not passing correct page-per-thing urls to error view when backdrop failed, making debugging hard because you couldn't click through to get a json link.

Share the code that renders modules between client and server dashboard controllers to have a single implementation of this code.
Merge pull request #720 from alphagov/bugfix/ppt-error-links

Fix urls for error-ed modules