restructure btc-e bot code