Adds limit on message length

Since GCM messages have a limit of 4KB, this updates restricts the max
message size to 1000 characters.