Fix issuing of advice.

The add_advice() function was not properly formatting the JSON, so the
frontend javascript was not picking up the advice messages.
Also added the missing maketext() calls to render the maketext into
a usable string.
Fix typo
Switch to div rendering.

This change keeps the same sequential layout but gets the HTML sent
by the backend rending to that the links can be tested.

There is some type of utf8 encoding problem when the text is serialized
through comet and rendered into the interface.