Adds ghost writing, config options, admin toggle.

Also numerous fixes from master.