submission form and related functions cleanup

TODO hook up api calls in form, fixup todo in associated script. add validation before submit for required fields.

bit to go yet, but so much change we should prob bring it home if possible so others don't have merge issues later..