Started fixing the page reordering code (WIP, NOT WORKING)
Merge branch 'develop' into bugfix/page-reordering
Changed the way pages are reordered
Fixed bug that prevented pages from being able to move to the last position