Added ability to use fopen instead of curl

Added config option to enable or disable CURL and use built in PHP functions to connect to wallet.