Planning with Extended Goals and Partial Observability