Refactor code. Fix a bug related to NSOperations.

Bug: The max_tag_id value was not updated in the URL to get media for a new user with new access token.