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

closes #677 and #542 
could you include docstrings `""" ... """` with the description of what the function does.