Add layout and 404/500 handlers