refactored PlainPost and ZeroBin logic into a single shared library

This pull request makes the interface between privly-applications and privly-web standardized for new.js such that the application specific new.js scripts only need to have application specific logic. Basically, this is an effort to make privly-web applications more DRY and maintainable.