bitcoin: add support for altcoins, add litecoin and namecoin