[client] update msi/deb version to 3.0.0
update source version to 3.0.0
removed some unused includes
updated build-msi.py
Fix a few bugs and memory leak.