Task-Aware Planning And Learning In Partially Observable Environments