a framework for npapi plugin developing