convert groups module to routes
CS fixes
misc. fixes cc: @cmfcmf
Merge pull request #2004 from craigh/groupsmodule-routing

convert groups module to routes