Add loading indicator

Also fix pagination and sorting on tables
Merge branch 'loading-indicator'