Move util/ out of app/core/

It’s actually used outside core too, so it makes sense to bring it to a
higher level in directory hierarchy.