refactored app/plugin protocol to include app-specific js, improved pullq example