Added ability to enable and disable the pull to refresh action.

For a project I am working on, it was beneficial to have the ability to disable the pull to refresh action when there is no network connection or under other conditions where it is known that there is no more information available to be refreshed.