URL shortener coded in Erlang