Consistently use type long for index parameters
Merge pull request #12 from bramk/indexesAreLong

Allow waitIndex and prevIndex arguments to be of type long