Refactor common code into a generator

Each of these modules had the exact same code with one string changed.  This moves all of this code into a common generator, then refactors all of the transforms modules to use it.
Short Answer: The AR views are not required for the operations right now

Long Answer:
The views were first added because that's just how I figured out how to
make it work.  I have not seriously investigated removing them because
 they allow the JS visualization to access abstract rendering definition.
That is a necessary step towards allowing the AR def to be changed on the
client.  At each server pull request, it retransmits the AR definition, so
some widget or another could modify it (set different colors, change the
number of contours, maybe even insert/remove shader ops).

--JC



On Tue, Nov 11, 2014 at 2:35 AM, Bryan Van de Ven <notifications@github.com>
wrote:

> In bokehjs/src/coffee/transforms/_generator.coffee:
>
> > +  "common/collection",
> > +  "common/has_parent"
> > +], (ContinuumView, BaseCollection, HasParent) ->
> > +
> > +  return (name) ->
> > +    class View extends ContinuumView
> > +      attributes:
> > +        class: View
> > +
> > +      initialize: (options) ->
> > +        super(options)
> > +        @render_init()
> > +
> > +      delegateEvents: (events) ->
> > +        super(events)
> > +        null
>
> return null will match the rest off the Bokeh codebase
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/bokeh/bokeh/pull/1388/files#r20127250>.
>