Refactor submit to use options object.
Refactor submit to use options object.

jclem/livedb,nmai/livedb,matthewbauer/livedb,bsnote/livedb,k-components/k-livedb,mattbrun/livedb,share/livedb,mcanthony/livedb