Better modularize web server request handlers