Add option userManagerClass

Add option userManagerClass to use a custom UserManager class.