rewrite the python code
add vhost support; close #3
update readme
Merge branch 'staging'