677 add version number to xform and endpoint to replace a form

closes #677 and #542 
no need for all these line breaks,

```python
survey =  builder.create_survey_element_from_json(
    json.dumps(survey_json))
```