Watch-only addresses

copy correspondant pull request  https://github.com/bitcoin/bitcoin/pull/2861 from bitcoin to dogecoin