begin changes to perm actions
fix up JS in perm UI. Add back functionality to insert above current row. fix broken delete functionality.
reformat JS file
add some spinners while JS is working
correct added row from JS
correct minor problems in the pager