RL for Planning and Planning for RL