cleanups
plug memory leaks

caused by incorrect libcurl usage
also shutdown correctly after CTRL+C/SIGINT
bump version
Merge branch 'master' of https://github.com/hrkfdn/mpdas