Handle Dismiss button for navigation controller

In order to raise KIARegistrationCancelled and KIAPreferencesClosed in both cases of modal and push segues (i.e., all positions in navigation stack), we need to replace the back button in all cases, in order for the button click delegate to be called.