[BZ 1037809, 1024526] Fix for agent file permissions and related umask settings.

Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
[BZ 1037809] Add code set the default umask if the user makes a mistakes and removes the definition from the env script.

Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
BZ 1014622 the suspect metrics report screen doesn't filter out ignored resoruces.

this commit only shows those resources that have been COMMITTED - anything else won't show in the suspect metrics view

Cherry-Pick of master c954eda
Signed-off-by: Jay Shaughnessy <jshaughn@redhat.com>
[BZ 1037809] Rewrite default umask code to a more traditional shell script syntax to avoid incompatibilities with older systems.

(cherry picked from commit a18b558af3479687d89392bdb7bc99bac4d00f8b)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
[BZ 1040712] - Attempting to delete a previous bundle deployment from a destination fails due to database foreign key constraint violation - Redirecting the reference of replaced bundle to the doomed one (just like removing a element from a linked list). Adding an itest for this use case.
(cherry picked from commit 08b1215bd377333c118b7dce88c09b30f37de409)

Signed-off-by: John Mazzitelli <mazz@redhat.com>
[BZ 1040712] - Attempting to delete a previous bundle deployment from a destination fails due to database foreign key constraint violation - Removing an unused finder constant.
(cherry picked from commit c52692223c019967238adb531c23114cf2991850)

Signed-off-by: John Mazzitelli <mazz@redhat.com>