Fix nits/bugs in PhoneInput.

- Makes `isInternational` a required prop.
- Checks for `onChange` before calling it.
- Moves update handling to `componentDidUpdate`.
- Adds formatting helper function.
- Removes extraneous `require` from RegistrationView.