Total refactor to include bitshares payment gateway