Bundle fixes

Improves bundle performance and decreases file sizes by correctly
applying Zlib compression.

This commit includes nominal changes to other source files.