Toadlet improvement for WOT

- Add sendUnauthorizedPage() to Toadlet so WOT can use it
- Replace lots of code duplication in fred with usage of the new function.