outgoing message processing

This adds the necessary infrastructure for sending AMF messages
to clients, including item state changes, player property changes and
announcements.
Also includes two more item handling functions that were forgotten
in #11.