I'm looking for a framework/library/solution to serve mapnik generated maps with multiple (up to several thousands) of different styles (and potentially different backing stores). Something similar to what they're doing over at Cloudmade or Mapbox with their WYSIWYG styling of maps. All components I've evaluated so far (tilecache, tilestache, renderd, tirex, tilecloud among others) have many delicate features, but most, if not all, are designed to serve a statically configured set of maps (the amount is even set at compile time in renderd) and none of them have hooks/api's etc. to dynamically add or remove maps while running. The solutions based on mod_tile even suffer from the fact that one need to fiddle with the Apache configuration to add a new map.
Any clever solution out there to this problem? Do I need to roll my own stack for this? Mapbox and Cloudmade seem to open source a lot of the work they're doing, but this aspect may be a little bit close to their core business.