More API clean ups - devicestates, endpoints, events, mailboxes and playbacks