Add basic support for form generation. Need to improuve support for resource that contains resources (cladimed)