Added REST api to start perf profiling.
Refactored out partitionstore struct.