MP1-4155: fixed big memory consumption when a lot of data are stored in cache file
added some logging about not-created output pins
some cleanup in RTMP protocol