Definitely need to take a look at this: http://www.asp.net/aspnet/overview/owin-and-katana/an-overview-of-project-katana (anybody used it?)
Here is its hello world example:
A quick skim of that article showed that they were inspired by Rack and Node.Js , which can't be a bad thing :)