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

closes #677 and #542 
why is this setting the `self.version` instance variable?