Wrote unfinished code for a dependency resolver, and commented in detail about potential ways to redesign the definition system to avoid cycles.