Fix so empty properties get removed where necessary

Otherwise they mess up the ajax query and hence return no results
Example is when 'data-skills' = ""
Remove unnecessary css class and fix button padding
Add callback for when pagination buttons are clicked

- 'table' variable has changed scope so it can be reused in both callbacks
- turning an anchor into a ckeditor button has been wrapped in a function
  so it can be used in both callbacks also