added support for insight, some code cleanup, and abstracted and moved bitcoin interactions to bitcoin.py