Use Elixir GenServer instead of the erlang interface

* Replace `:gen_server.call/2` with `GenServer.call/2` in `random_file/1`
* Replace `:gen_server.start_link/4`with `GenServer.start_link/3` in `start_link`