Controller improvements

A few improvements to the controller logic - a few new SSL tools, and an extension hook for trapping 404s.