Added emote support.

Server part of the emote support feature.

0 ids are now valid again.