Move util.cpp to common, it's used in ui/.

Fixes a cyclic dependency between common, ui and probe.