Implement /rangelock

More info: http://www.smogon.com/forums/threads/3517493/
We should really fix the whole groups system at some point. Maybe roll it into Users or something.