RestAuth server reference implementation