Dylan's first yellow was bad refereeing.
Why was it bad refereeing? You can't stop someone from taking a free kick like that, your always going to get a yellow. (1min 34 sec in)
He didn't ask for 10 and decided to take a quick free kick. Dylan didn't prevent the kick from being taken.
Sure it's poor sportsmanship, but what he didn't isn't against the rules.
1. When a free kick is taken, an opponent is closer to the ball than the required distance, the kick is retaken unless the advantage can be applied; but if a player takes a free kick quickly and an opponent who is less than 9.15 m (10 yds) from the ball intercepts it, the referee allows play to continue.
2. However, an opponent who deliberately prevents a free kick being taken quickly must be cautioned for delaying the restart of play.
What the ref's done is elected the second rule - which is incorrect as he didn't prevent it from being taken.