Assess the moderates, temporary house them in Israel / west bank, build permanent communities and provide land, opportunities and ensure universal citizenship. Demolish Gaza, rebuild and integrate. Engage and empower the PA to actually work for its people and promote integration. If the Arab states want to positively contribute / assist / take on-board any refugees created; Great.
Now time for my morning coffee, as I clearly need to wake up!
Having solved the Middle east before lunch, you are entitled