Added registry index API.
Merge pull request #8 from megax/master

#2 pull request updated.