support custom values for base-index

previously assumed first window of a new session would be 0.
thanks to Laurence McArthur <lmcarthur gmail com>
Merge branch 'release/v2013.09'