Removed config.Filename and replace it with config.GetConfigFilePath that
takes a configuration directory as argument instead. Makes code simpler.
ipfs.getConfigDir now also return the default configuration dir instead of
an empty string in some cases.
WARNING: change breaks old configs.
@whyrusleeping @perfmode
This commit changes the way addresses are stored in config files.
It lumps Identity.Address and RPCAddress into Addresses. This
commit also fixes several golint issues.
There are (so far) two sorts of addresses that peers care about:
- peer network addresses, local to listen, saved to bootstrap.
`config.Identity.Address`
- peer RPC network address, local RPC tcp endpoint
`config.RPCAddress`
@whyrusleeping @perfmode