Before Hamas's violent attacks on Israel this past weekend, there existed a long and complex history.