Fix datadir.conf handling.
Made conf file name and rpcport properties of Chain.