Add requireAdmin method for REST classes.

Also remove redundant validation out of folder REST class.
Retro line length limit