Jnf/form generation

Adds the form generation and persistence.