Add pagination

Pagination on main page.
Once save button is clicked it remains disabled until operation finishes.
Fix slow duplication of already uploaded files.