Added all the code necessary to support pull to refresh notifications