Some mild JS cleanup
Workaround for Rails bug in nested empty arrays in JSON params
Fix for API resubmissions, cleanup of unused variables
Fixed edit flow to reset page for every new point