Palestinians have for decades had their freedom of movement curtailed around Jerusalem, with measures the Israeli authorities say are necessary for security.