split operators/bmo_beautify.c into tools/bmesh_beautify.c

This is a proper design if we want to use the beautify routine elsewhere
(e.g., in the triangulate modifier)
-oflags is only available when called from an operator