work on the clients and merge common functions

Many common trade functions moved to common.py, functions.py is
deprecated and merged in here now as well. not done yet unifying all the
scripts.
Bitfloor_spread will eventually become bitfloor_client