Matchings and Hamilton Cycles with Constraints on Sets of Edges