Convert Integer to Long for createdIndex, modifiedIndex, etcdIndex and ttl.

Fixes #10