refactoring and bugfixing in page and article REST
setup nested page path for page URLs