support for remote JSON config
Merge remote-tracking branch 'epoplive/master'
Refactor code to support proxies