Keep track of when the main is loaded

This adds a property to the loader so that we know when the main bower.json has been loaded. This is needed because we want to only set the `paths` for non-mains.