Rpmtrans cleanups + scriptlet output fix

Minor cleanups to rpmtrans stuff, remove unused functions etc with no effect on functionality, plus the last commit fixes scriptlet output for %post* scripts (see RhBug:615763 for the yum equivalent)