Update to new couch_epi API
diff --git a/src/couch_index_epi.erl b/src/couch_index_epi.erl
new file mode 100644
index 0000000..946a590
--- /dev/null
+++ b/src/couch_index_epi.erl
@@ -0,0 +1,49 @@
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+-module(couch_index_epi).
+
+-behaviour(couch_epi_plugin).
+
+-export([
+    app/0,
+    providers/0,
+    services/0,
+    data_subscriptions/0,
+    data_providers/0,
+    processes/0,
+    notify/3
+]).
+
+app() ->
+    couch_index.
+
+providers() ->
+    [].
+
+
+services() ->
+    [
+        {couch_index, couch_index_plugin}
+    ].
+
+data_subscriptions() ->
+    [].
+
+data_providers() ->
+    [].
+
+processes() ->
+    [].
+
+notify(_Key, _Old, _New) ->
+    ok.
diff --git a/src/couch_index_server.erl b/src/couch_index_server.erl
index abb4b7a..ac2c609 100644
--- a/src/couch_index_server.erl
+++ b/src/couch_index_server.erl
@@ -38,7 +38,6 @@
 -record(st, {root_dir}).
 
 start_link() ->
-    couch_epi:register_service(couch_index),
     gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).