[server] some fix and function enhancement

1. fix some syntax warnning
2. using logging module to handle log
3. load port and key config form file
[local] add config file instead of hard code

Symptom:
Root Cause:
Solution:
Project:
Note:
[config] add example file

Note: config must be named as "config.json"
[server] fix some log print exception
[server] add var to track queue resource