This PR improves argument handling in rpcauth.py script by using argparse module. Specifying - as password makes it prompt securely with getpass module which prevents leaking passwords to bash history.
Backport of core PR14756
https://github.com/bitcoin/bitcoin/pull/14756/files
Depends on D3781.
Also updated the copyright so the file is in sync with core.