Safely removing 'index.html' from relative urls

Fixes to #16

Added the PyQuery dependency.  Required for safely replacing the urls on each of the generated pages.
See https://gist.github.com/karlcow/3258330
The following is working for me.
```
 d = PyQuery(bytes(bytearray(text, encoding='utf-8')), parser='html')
```