Hg 113 support for subpages

Refactor code to work with subpages
and some better support for comments (but this still needs some love)
space after function keyword. Also, why use typeof App.ArticleModel here, ArticleModel's type isn't dynamic and should always resolve to 'object' right?