Nib2cib cpbrowser compatibility

This is a continuation of #1732.

Re-opened since GH seems to have lost the connection between my repo and the capp repo.

This commit adds support for decoding more flags from the XIB. It's not pretty, but it seems to work with the test case.