Corrected the use of the Splunk API

To use receiver.Attach, you must use the returned Stream object to post
further data.