Adding a somewhat generic web application handler