Complex Observation Processes In Ecology And Epidemiology : General Theory And Specific Examples