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
Fixed command line parsing, so that code which expects arguments in a peculiar order isn't confused by --conf=xxx.