Added showPermission for publish_to_stream and checking of this permission(problem: it always returns false).
stream.publish returns ok
Merge branch 'stream_publish'
Publishing now works.