Servo util refactor

Move generic util code from servo-gfx to top-level servo-util.