Wall Street edges up on optimism, eyes on Mideast