Added publish authorization.

References #20.