Total refactor

Massive redesign to make the plugin actually look like good php code (it does exist). Also, created a better build script and linked it to jenkins for seemless building and version tracking.