Leo's bugfixes in Control/Task due to changes in ProjectDTO and
ApplicationDTO.