Add skeleton for auth plugin and move plugins to threads