Plugin auth

merge plugin_auth branch to master