Changed to not use .prototype where it is not needed.

* Changed from adding methods to the Mock.prototype object to instead adding them to the object using the this reference.