rtcp mapping and some other port mapping fixes

also codestyle fixes, parser fixes,
teardown handling and etc.