Error 404 module for match-anything handler

Configures a new 'error404' module that can be used as the final
match-anything handler for the application, providing a better error
page and logging.