Multiple graphics module changes

Renamed mesh_buffer struct to dynamic_elements_buffer. Struct now no
longer has array of mesh struct elements, as objects in this buffer
category are not necessarily triangle or polygon meshes.

Moved all buffer structs and related code into new buffer.h/.c files.