Port buildPage features (404, page-name, white-list, path fixes) from develop branch (current: dev-alt)