Implemented FlvWriter with unit tests.