Erlang library for RestAuth (inclomplete)