Allow no payload parameter and tests for empty payload
Improved error reporting for missing topic name when publishing (fixes #47)