Merge pull request #24 from jianingy/debian-issues

fixed build issues of debian/ubuntu
add support for fetching source using http protocol
reset confdir to original value
Merge branch 'http-module'