repo: initialize storage (e.g., rebuild index)

Change-Id: Iba8d5db1ecfb67c085f7f6355726a41b3f48aafa
Refs: #1831
diff --git a/src/main.cpp b/src/main.cpp
index 999b7b8..3a1be07 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -82,6 +82,8 @@
     signalSet.async_wait(bind(&terminate, boost::ref(ioService), _1, _2,
                               boost::ref(signalSet)));
 
+    repoInstance.initializeStorage();
+
     repoInstance.enableValidation();
 
     repoInstance.enableListening();