I'm not using the additional features much, so I didn't test them.
But I'm sorry to tell you that I broke your plugin in Rev 534
I removed the obsolete cRoot:GetWorld() function with no argument. Everyone should use cRoot:GetDefaultWorld() instead for getting the default world; cRoot:GetWorld() takes a string parameter for the world name.
Also I added world enumeration to the cRoot API. It works similarly as player enumeration in cWorld - you call a ForEachWorld function with a callback parameter and then MCServer calls your callback once for each world, with the world as a parameter. Simple usage example (in your chunkworx_web.lua's HandleRequest_Generation() function):
You can use this to populate a combo of worlds instead of the users having to type in the exact world name 
Two more things that would really help me:
- remember the coords that I enter for generation. Store them in an INI file, I see you know how to do that already
- besides the (StartX, StartZ, EndX, EndZ) coords, allow the user to enter (CenterX, CenterZ, Radius) coords as well. Much easier
Your plugin is extremely helpful for my development right now - when I change a generator, instead of having to walk around with a player in MC, I just let your plugin generate an area and see it in a map nicely
But I'm sorry to tell you that I broke your plugin in Rev 534

I removed the obsolete cRoot:GetWorld() function with no argument. Everyone should use cRoot:GetDefaultWorld() instead for getting the default world; cRoot:GetWorld() takes a string parameter for the world name.
Also I added world enumeration to the cRoot API. It works similarly as player enumeration in cWorld - you call a ForEachWorld function with a callback parameter and then MCServer calls your callback once for each world, with the world as a parameter. Simple usage example (in your chunkworx_web.lua's HandleRequest_Generation() function):
Code:
local WorldTable = {}
local AppendToTable = function(World)
Content = Content .. ", " .. World:GetName() -- debug - output directly to Content
table.insert(WorldTable, World:GetName() )
return false
end
cRoot:Get():ForEachWorld(AppendToTable);

Two more things that would really help me:
- remember the coords that I enter for generation. Store them in an INI file, I see you know how to do that already

- besides the (StartX, StartZ, EndX, EndZ) coords, allow the user to enter (CenterX, CenterZ, Radius) coords as well. Much easier

Your plugin is extremely helpful for my development right now - when I change a generator, instead of having to walk around with a player in MC, I just let your plugin generate an area and see it in a map nicely
