WIP: Start implementing WTForms on edit page

It's still half implemented, but the edit page  broken now anyway, so doing it in a few commits.