add custom base url support
Merge pull request #7 from chuangbo/master

add custom base url support