A little beautification.
Unified addField functions.
Added writing back the config data via form submission. WIP, still missing: validation and password.