initial commit, semi-working rest client