Automate building and Major clean up

Eliminated the need for jquery. That also required switching encryption libraries. The overall extension should be smaller now.