graphics: Add grid and more mesh code

- Add static_arrays_buffer, a mesh buffer for objects drawn using
  DrawArrays* routines.
- Grid code added. Grids are drawn using DrawArrays and are stored in
  a static_arrays_buffer. generate_grid() generates the vertex data
  for the grid into a target block of preallocated memory.