app, libgimpbase: move lots of enums from app/core to libgimpbase

It makes little sense to keep them in one header and parse them with a
pile of perl, just to generate them in another header. Simply keep
them in a place everybody depends on.