I tend to write a few larger files for handling web requests, and then start factoring them out into smaller libraries when they get unwieldy (like, longer than 100 commented lines or so)