Fix bugs in "douglas-cmd serve"

* handle the case where base_url = /
* handle re-rendering indexes correctly
Update pager code in html theme