Don't allow two replica tasks for a single share.
report authentication error correctly.
Retry failed replica tasks.
separate out utility methods.
Merge branch 'issue#385_replication' of git://github.com/sujeetsr/rockstor-core into sujeetsr-issue#385_replication