[CRFIX 1/3] Additional after-merge corrections

This is just a set of after-merge corrections which were left out due to
overwhelming amount of conflicts and differences between branches. Correct
CRFIX after review will come up next.
[CRFIX 2/3] Code review fixes

This commit covers most of Code Review fixes - basic changes like fixing
style mistakes, missing returns, etc.
[CRFIX 3/3] Add stub function for adding Buffer to PAK

This commit adds a stub AddFile overload to PackerWriter which takes
Buffer object as argument. Implementing multiple resource types in Packer
requires some reorganization and will be done in separate commit.