Refactor how bundles and frameworks are handled.

TODO - fix the following not caught by a test:
Fix framework symlink foo.framework/foo -> Versions/Current/foo