Switch to using ErlInterface

Now it uses ErlInterface, to avoid homegrown decoding when interacting
with the Erlang program.