added WP admin stuff and group support

plus various other improvements - see commit history of dev branch for
details