add form input[name] and label[for] attributes

Support form input[name] attributes and label[for] attributes. Follows the de facto standard associative array syntax for nested values.

This opens the possibility of integration with other JavaScript form libraries that expect this convention, e.g. [jQuery Form](https://github.com/malsup/form/).