Use config file instead of flag for config

1. Use json to store server configurations.

2. Add example json format.

3. Also change Makefile run target to run with -config ./data/config.json.