Bug 1079303 - Excessive database size when using bundles causing UI to fail - step 2

Database changes

Added index on resource deployment id in audit table
->Fast fetch histories aync when unfolding a resource deployment in the UI

Dropped foreign key on resource deployment id in audit table
->This is to prepare the async deletion of orphan audit messages when deleting a bundle deployment (or a bundle version, or even the bundle itself)