Add pagination to recent files page.
Fix error on file page with no changes.
Fix showing actions based on permissions.