update sort field before submit and cleanup

* before submit update value of hidden answers-sortable field
* user updateSortField function in stead of saveEvent, we don't save
anything yet
* remove obsolete functions and code
* rearranged code of $(function()) (code per tab in order of tabs)
* added more comment