Make API more consistent
Refactor
Bugfix and support for text and hashed indices
Rename to more generic concept.
Add copy method
Update closure compiler version