bundleRelations: Move all code into the exported function so the options object can be accessed.
bundleRelations: Move all code into the exported function so the options object can be accessed.

jscinoz/assetgraph,papandreou/assetgraph,papandreou/assetgraph,papandreou/assetgraph,jscinoz/assetgraph,assetgraph/assetgraph,slang800/assetgraph,slang800/assetgraph,jscinoz/assetgraph