Include some fixes from http://github.com/alfateam123/homepage about local pages handling

An unexpected behaviour (at least, in my opinion) broke a simple startpage I was developing
after a /g/ "homepage thread". Fixed for FF31