plugin compilation through pants

Testing Done:
compling works. have some run-time exeptions while running tests.

Reviewed at https://rbcommons.com/s/twitter/r/1406/