Rewrite video memory allocation system, generalize overlay support

The video memory allocation system now uses a GstMemory-derived
class.

Support different alignment restrictions for hardware overlays.

Keep statistics for frames rendered from system and video memory.