btcapi now handles currency

code minification

functions changed to static inline:
	debug.c->debug.h
	error.c->error.h