Got all forms working on edit and publish pages

Cleaned up API to use “sample” instead of “invitation”