make local_name an attribute of Request, move logic from get_localizer into Request.localizer, fix docs; closes #1099