put index page registration in example rest.py

(fixes #8)