Change cogroup operator to allow a cogroup stub with open/close etc
Make all scala rich stubs have apply method instead of specific name

Before, MapStub required the user to specify a map() method, now they
specify an apply() method. This is more in line with how Function1[] and
so one works and also the same across all operators.