Refactor ets code into erlio_store gen_server.