Replace hardcoded opm-core name with variable
Reorder dependency list

Should still be queried in topological order
Distinguish between AGMG and opm-core specific

The AGMG parts may be reusable in other projects