Use vertex arrays to draw glyphs and boxes

Using glBegin and glEnd causes a lot of command buffer traffic, and
glDrawArrays can be optimized using DMA, so this approach is better.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>