Make form REST compatible. Cleanup. Fix authencity token.