Check if 2FA is required and trigger SMS if needed

Currently, SMS seems not to be supported for 2FA.

This PR checks for 2FA and only asks for code if required. This also triggers an SMS if 2FA is configured to use this. Uses same solution as in https://github.com/github/hub/issues/435