Refactoring [rest] and [oauth]: make string lengths arbitrary.