implement new LocalGateOpenedEvent & LocalGateClosedEvent
let api users get a list of the gates links
add new API message function + event