First completely working version.

Support for JSON two-way binding and name and mode bindings.