Refactor OpenWrt user module

Simplify rm_user and user_groups subroutines.