Addon binary reading and writing


This PR introduces a "Buffer" class usable from the addons. It's used to replace the custom codegenerator code in the RenderCapture and also for xbmcvfs read/write.