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
Merge pull request #1936 from craigh/permUIfixes

Perm UI fixes