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

For a project I am working on, it is beneficial to disable pull to refresh if there is no connectivity to the network and under other conditions when it is known that no more information can be refreshed.