Added new option INDEXES_PAGES_STARTING_WITH_LAST.
Continued refactoring indexes.py and tags.py so that most of the code is quite identical, and can be moved into a common utility function soon.