rtcp port mapping and other fixes

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