Move the localize script

By doing it later, we have access to stuff like the chat ID and can
generate the nonce.
Switch how the localize data is accepted to take all of it
In JS, start submitting the entry.
Add some minor styling to the message list.
Add a catcher for the AJAX message submission.
We're kses'ing it on the ajax action, so we don't need to here.