Added support for displaying an error message if a refresh fails.

Also made it so that the header transform is aware of the current pull-to-refresh state, so if a library user sets custom text whilst refreshing incorrect text will never be displayed.