Modularize plugins and users, add multisite support