An Architecture for Hybrid Planning and Execution