Generic Table Controller for Pull to refresh and load more functionality.