Start implementing page sort order offset

Includes changing PageSortOrder to PageOrderOffset.
Make page sort order offset work.
Make non-JS version of forum page work, except for pagination

Also
- Break out function SiteDao.listTopicsInTree()
- Remove some code no longer needed.
Fix forum index state bug.