Add some confirmation boxes to actions

Some actions are inherently harmful if used without care. We need to
confirm that the user really wants to perform these actions before going
ahead and performing them.