Added namespace support to setup. Improved error handling so that it works as expected. Fixed merge failure causing logins to not work. Added enable/disable auto-awarding of permissions during setup