Allow server to split logs by hostname

As discussed, this patch provides a template for rsyslog server to write logs from remote hosts into directory split by hostname. Also clarify documentation on this point and add tests.