Add middleware method to get process title of a given pid

(cherry picked from commit 0c05d157806b9fb49b85a71e55c63cb7fc1090b5)
Change autorepl to report the PID of zfs send

We need to know the process ID of the zfs send process so we can get the
status of the replication using the process title.

Ticket:	#4553
(cherry picked from commit 17f0c7cf1a08a9041a1a89f4999da1345060bd86)
Add a status column to the replication datagrid

Ticket:	#4553
(cherry picked from commit 157ec6dcc00eebbb425a6cd2ac4f713b55be43af)
Fix format for ps in get_proc_title

(cherry picked from commit ed8697d453a6d1fb23fe91309024fe6fc3b28375)
Show last snapshot sent in replication datagrid

Ticket:	#4553
(cherry picked from commit 6396e3f658f71b96b68f958e45b615cc1a5c2ee2)
Save result of last replication run in the database

Ticket:	#4553
(cherry picked from commit e0f4706493c925c02d2369748d8f044b36660ad4)
Fix regex to get zfs send percentage

Ticket:	#4553
(cherry picked from commit bfcefe5ffe7c2c0098063a365efe2c0d7b843c97)
Hide repl_lastresult column in datagrid

Ticket:
(cherry picked from commit 3f7853e5b4c16649a997e6850ac106bc275e6c9e)
Handle templog file properly to write and read contents

Ticket:	#4553
(cherry picked from commit 87372be848c1fbe15c166b9bb2fe726f017e2a1c)
Do not log dumb double dd calls in the replication

Ticket:	#4553
(cherry picked from commit 74520f4049f9cf3ee104ddfc3e321b1ee6e511ee)
Add alert module to warn about failed replication

Ticket:	#4553
(cherry picked from commit 37c8bd751ff45df3e184db36459a0fde00c4cc98)
Fix alert level

(cherry picked from commit 32c3170d88082ece1696c2e8b9c974e1027b1838)
Strip new lines for the replication status

Ticket:	#4553
(cherry picked from commit 64966c5b768d9aec3ca273277af04e607c124979)
Show whether the snapshot is already in remote side

Ticket:	#4553
(cherry picked from commit f08784f44290444d146cd0958cd65b5ba30a7dd8)
Do not store last replication result in the database

Ticket:	#4553
(cherry picked from commit 5131404b590a91640f55279973b59eb44dab62cd)
repl_lastresult is not a field in the ORM anymore

Ticket:	#4553
(cherry picked from commit 7618b08224c7f07b96b7fa57e02b038f51e060a0)
Do not run ssh in quiet mode to retrieve errors

Ticket:	#4553
(cherry picked from commit 4e3d529bfd0f97d4c34faa1b1a9b8917a6c7be0c)
Use a connect timeout in ssh for replication

It is an arbitrary value without any scientific comprovation :).
That is the easiest way to do not hang in "Sending" status when it is
not actually doing it.

Ticket:	#4553
(cherry picked from commit 7e9ddde6dedca44356d5f7666c8e09cc58de0129)