graphics: Add elements/arrays buffer objects

Will be used to store vertex attributes for objects to be drawn with
DrawElements* and DrawArrays* calls respectively. Also tweaked the editor
to make use of an arrays object for drawing the default grid.