Refactors publish_event() and publish_event_object() of UNS

* Refactors according to Michael and Maurice's comments in the email thread regarding the publish_event() and publish_event_object() methods of UNS
* get_ion_ts() is now used throughout UNS