Hiera: Add documentation for writing custom backends

With many thanks to Reid Vandewiele for breaking down that example.