Removed stray ipdb.
Added some Erlang stuff for prefix matching.
Prefix matching kind of works. Needs serialization on frontend.