Rewrite metadata downloading. Initial mod support.

Both seem to be working.