cleaned up module and using prototype for api which is now only created once
cleaned up module and using prototype for api which is now only created once

doron2402/proxyquire,thlorenz/proxyquire,kamilogorek/proxyquire