Don't post messages with an invalid length

Don't post empty messages, or messages that are longer than 500
characters.

Fixes #73.