move `pageScript` functionality into basis devpanel; some refactoring
fix server transport