Formspec json

Currently the formspec is described in a bad format: A way to fix this would be to use a JSON-based formspec description language: This would allow you to have default values for parameters. You could then add a JSON serialization function to the API, allowing for use of Lua tables, like so: