Add SpainCoin support properly

Imported from https://github.com/SpainCoinProject/p2pool