Made rest_login_required decorator optionally support only requiring authentication for certain methods, and updated comments to use it