Added TTL support for save, insert etc. Added search by secondary index (Joerg). Fixed up some other issues.