Fix links

Also prefer URLs without .html.
Avoid unnecessary 301s
Fix link fragment
Fix broken links
Correct typo in link fragment
Fix broken link
Fix broken link fragment
Update blog post links
Avoid unnecessary redirects
Handle malformed domain names and cert problems
Fix broken links
Fix broken links
Merge pull request #407 from alphagov/fix-links

Fix links