bukkit: factor out generic utilities to bukkit.util package