Rename IndexPathMap to IndexNamespace

* Rename to IndexNamespace
* Use thrift as serialization format for IndexNamespace
* Use MockLevelDBStore for most of the unit tests of IndexNamespace
* Added support of loading data from database to initialize IndexNamespace, tests included.