Add PUT for zones

Also includes various cleanups.