Added support for subsites and index page

This fix solves the Problems from Issue #7. -> https://github.com/gilbitron/Pico-Editor-Plugin/issues/7