The DiscoCat Application Framework