support for btc-e.com exchange

Refactored to make adding support for other exchanges easier.