Fix broken resize code.

browserscreen.resize expects that the set_line_origin method checks the new
origins boundaries and uses the lower/upper bound in case the new origin
exceeds them.
Properly render the reverse attribute.

The cljs screen does not have an explicit reverse attribute. So for now,
the server swaps fg/bg colors instead to render reversed lines.
Rudimentary alt buffer support.