Taking a lot out of bin/compile.py by putting explicit metadata in 3_0 and 4_0 files.

Also added the reference guides from the old site.