404 and 500 handlers added to core templates and settings urls