Example client/server code for erlang-oauth