added paillier.js

Main backbone of the project. Not usable alone since I've added log statements.