add btc written retrial and error handling
fix wallet lock issue
merge support writeToBTC with multiple addresses, retrial and error handling.

Conflicts:
	restapi/main.go