Create nppsync.js

All NppSync JS functionality in one place. This file is used on options page and in background.js as well.