in reply to Building Web 2.0 UIs

Take a look at CGI::Application.