Clean code API for avdevice library.
Remove duplicated code.
Update comments.
Clean code of avutil part.
Update some code for unpacking JAR-file. Minor wrapper code refactoring.