Refactored index page link/path generation code to support possible future enhanchements.
Fixed a bug in adjust_name_for_index_link in case STRIP_INDEXES removed index.html from link.
Renamed next/prev to nextlink/prevlink.
Improved logic.
Improved formatting of new file name.
Forgot to change one occurence.
Fixed bug (again).
use list() for copying lists [py2k compat]

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
take only the basename from splitext

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Merge branch 'master' into indices_pages_improvement
Merge pull request #1554 from getnikola/indices_pages_improvement

Refactoring indexes path/link generation for possible extensions